Remove unnecessary definitions and calls master
authorRicardo Mones <ricardo@mones.org>
Sat, 3 Dec 2022 13:32:58 +0000 (14:32 +0100)
committerRicardo Mones <ricardo@mones.org>
Sat, 3 Dec 2022 19:53:38 +0000 (20:53 +0100)
The summaryview_lock function is never called yet its unlock counterpart
is called twice to undo something never done.

src/folderview.c
src/summaryview.c
src/summaryview.h

index c48aefc13af7ac8683e9829de19bf658e966c9ee..8c9cb63d742f5bd66903db5954b74dd65eaa0ed7 100644 (file)
@@ -1207,7 +1207,6 @@ gint folderview_check_new(Folder *folder)
                             item->processing_pending == TRUE)) {
                                if (folder_item_scan(item) < 0) {
                                        if (folder) {
-                                               summaryview_unlock(folderview->summaryview, item);
                                                if (FOLDER_TYPE(item->folder) == F_NEWS || FOLDER_IS_LOCAL(folder)) {
                                                        log_error(LOG_PROTOCOL, _("Couldn't scan folder %s\n"),
                                                                item->path ? item->path:item->name);
@@ -1221,7 +1220,6 @@ gint folderview_check_new(Folder *folder)
                                }
                        } else if (!item->folder->klass->scan_required) {
                                if (folder_item_scan(item) < 0) {
-                                       summaryview_unlock(folderview->summaryview, item);
                                        if (folder && !FOLDER_IS_LOCAL(folder)) {
                                                STATUSBAR_POP(folderview->mainwin);
                                                break;
index bbd8d7f1d62c5aab45421b6fd3c774b5346c09e4..2ea4d741be0d4c0b656c5278459d3c5b5dbeb72f 100644 (file)
@@ -8503,21 +8503,6 @@ gint summaryview_export_mbox_list(SummaryView *summaryview)
        return ret;
 }
 
-void summaryview_lock(SummaryView *summaryview, FolderItem *item)
-{
-       if (!summaryview || !summaryview->folder_item || !item) {
-               return;
-       }
-
-       if (summaryview->folder_item->folder == item->folder) {
-               gtk_widget_set_sensitive(summaryview->ctree, FALSE);
-       }
-}
-void summaryview_unlock(SummaryView *summaryview, FolderItem *item)
-{
-       gtk_widget_set_sensitive(summaryview->ctree, TRUE);
-}
-
 static void summary_reedit_cb(GtkAction *gaction, gpointer data)
 {
        SummaryView *summaryview = (SummaryView *)data;
index 6a6d68d19c6890031e5adc38f3cd29737704b55d..ce3db3a9476e2bf68031189b1d25e46e1869ceec 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Claws Mail -- a GTK based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2015 Hiroyuki Yamamoto and the Claws Mail team
+ * Copyright (C) 1999-2022 Hiroyuki Yamamoto and the Claws Mail team
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -329,8 +329,6 @@ void summary_set_prefs_from_folderitem
 void summary_save_prefs_to_folderitem
                                   (SummaryView *summaryview, FolderItem *item);
 gint summaryview_export_mbox_list (SummaryView *summaryview);
-void summaryview_lock(SummaryView *summaryview, FolderItem *item);
-void summaryview_unlock(SummaryView *summaryview, FolderItem *item);
 void summary_reflect_prefs(void);
 void summaryview_activate_quicksearch(SummaryView *summaryview, gboolean show);
 void summary_set_menu_sensitive        (SummaryView            *summaryview);