Removed a few obsolete and unused functions.
authorAndrej Kacian <ticho@claws-mail.org>
Sun, 22 Jul 2018 19:06:26 +0000 (21:06 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Sun, 22 Jul 2018 19:06:26 +0000 (21:06 +0200)
src/account.c
src/addressbook_foldersel.c
src/editaddress_other_attributes_ldap.c
src/plugins/libravatar/libravatar.c
src/plugins/pgpcore/select-keys.c
src/summary_search.c

index 6fb22b6..cf28983 100644 (file)
@@ -156,10 +156,6 @@ static void account_get_all_toggled                (GtkCellRendererToggle  *widget,
                                                 gchar                  *path, 
                                                 GtkWidget              *list_view);
 
-static void account_autocheck_toggled          (GtkCellRendererToggle  *widget,
-                                                gchar                  *path,
-                                                GtkWidget              *list_view);
-
 static void account_double_clicked             (GtkTreeView            *list_view,
                                                 GtkTreePath            *path,
                                                 GtkTreeViewColumn      *column,
index 6b8c41f..14ca696 100644 (file)
@@ -54,13 +54,6 @@ typedef struct {
        ItemFolder      *folder;
 } FolderInfo;
 
-typedef struct {
-       gchar **folder_path;
-       gboolean matched;
-       gint index;
-       GtkCMCTreeNode *node;
-} FolderPathMatch;
-
 static struct _AddressBookFolderSel_dlg {
        GtkWidget *window;
        GtkWidget *view_folder;
@@ -135,21 +128,6 @@ static void addressbook_foldersel_row_activated(GtkTreeView *view,
        addressbook_foldersel_ok(NULL, NULL);
 }
 
-static gboolean addressbook_foldersel_tree_button( GtkCMCTree *ctree, GdkEventButton *event, gpointer data )
-{
-       if ( ! event )
-               return FALSE;
-       if ( event->button == 1 ) {
-               /* Handle double click */
-               if ( event->type == GDK_2BUTTON_PRESS ) {
-                       addressbook_foldersel_cancelled = FALSE;
-                       gtk_main_quit();
-               }
-       }
-
-       return FALSE;
-}
-
 static void addressbook_foldersel_size_allocate_cb(GtkWidget *widget,
                                         GtkAllocation *allocation)
 {
index 0ede96a..e4c9650 100644 (file)
@@ -95,22 +95,6 @@ static gboolean list_find_attribute(const gchar *attr)
        return FALSE;
 }
 
-/*
-* Comparison using cell contents (text in first column). Used for sort
-* address index widget.
-*/
-static gint edit_person_attrib_compare_func(GtkCMCList *clist, gconstpointer ptr1, gconstpointer ptr2) {
-       GtkCMCell *cell1 = ((GtkCMCListRow *)ptr1)->cell;
-       GtkCMCell *cell2 = ((GtkCMCListRow *)ptr2)->cell;
-       gchar *name1 = NULL, *name2 = NULL;
-
-       if (cell1) name1 = cell1->u.text;
-       if (cell2) name2 = cell2->u.text;
-       if (!name1) return (name2 != NULL);
-       if (!name2) return -1;
-       return g_utf8_collate(name1, name2);
-}
-
 static void edit_person_combo_box_changed(GtkComboBox *opt_menu, gpointer data)
 {
        GtkWidget *view = GTK_WIDGET(data);
index 41290aa..dee85bb 100644 (file)
@@ -146,14 +146,6 @@ static gchar *cache_name_for_md5(const gchar *md5)
        return g_strconcat(cache_dir, md5, NULL);
 }
 
-static size_t write_image_data_cb(void *ptr, size_t size, size_t nmemb, void *stream)
-{
-       size_t written = fwrite(ptr, size, nmemb, (FILE *)stream);
-       debug_print("received %zu bytes from avatar server\n", written);
-
-       return written;
-}
-
 static GtkWidget *image_widget_from_url(const gchar *url, const gchar *md5)
 {
        GtkWidget *image = NULL;
index 76b3ebd..677c6f7 100644 (file)
@@ -85,9 +85,6 @@ static void select_btn_cb (GtkWidget *widget, gpointer data);
 static void cancel_btn_cb (GtkWidget *widget, gpointer data);
 static void dont_encrypt_btn_cb (GtkWidget *widget, gpointer data);
 static void other_btn_cb (GtkWidget *widget, gpointer data);
-static void sort_keys (struct select_keys_s *sk, enum col_titles column);
-static void sort_keys_name (GtkWidget *widget, gpointer data);
-static void sort_keys_email (GtkWidget *widget, gpointer data);
 
 static gboolean use_untrusted (gpgme_key_t, gpgme_user_id_t uid, gpgme_protocol_t proto);
 
@@ -174,16 +171,6 @@ gpgmegtk_recipient_selection (GSList *recp_names, SelectionResult *result,
     return sk.kset;
 } 
 
-static void
-destroy_key (gpointer data)
-{
-    gpgme_key_t key = data;
-
-    debug_print("unref key %p\n", key);
-
-    gpgme_key_unref (key);
-}
-
 static void
 set_row (GtkListStore *store, gpgme_key_t key, gpgme_protocol_t proto)
 {
index 9d05951..654d881 100644 (file)
@@ -131,7 +131,6 @@ static void subject_changed                 (void);
 static void body_changed                       (void);
 static void adv_condition_changed      (void);
 static void case_changed                       (GtkToggleButton *togglebutton, gpointer user_data);
-static void adv_search_changed         (GtkToggleButton *togglebutton, gpointer user_data);
 
 static gboolean from_entry_focus_evt_in(GtkWidget *widget, GdkEventFocus *event,
                                  gpointer data);
@@ -966,11 +965,6 @@ static void case_changed(GtkToggleButton *togglebutton, gpointer user_data)
        search_window.matcher_is_outdated = TRUE;
 }
 
-static void adv_search_changed(GtkToggleButton *togglebutton, gpointer user_data)
-{
-       search_window.matcher_is_outdated = TRUE;
-}
-
 static gboolean from_entry_focus_evt_in(GtkWidget *widget, GdkEventFocus *event,
                                  gpointer data)
 {