Clean att_remover warnings
authorRicardo Mones <ricardo@mones.org>
Sat, 16 Nov 2013 15:02:45 +0000 (16:02 +0100)
committerRicardo Mones <ricardo@mones.org>
Sun, 17 Nov 2013 18:40:14 +0000 (19:40 +0100)
Cleans:
 • att_remover.c:503:16: warning: variable 'path' set but not used
 • att_remover.c:534:15: warning: variable 'summaryview' set but not used

src/plugins/att_remover/att_remover.c

index cb5a938..a60c1ef 100644 (file)
@@ -500,7 +500,6 @@ static guint main_menu_id = 0;
 gint plugin_init(gchar **error)
 {
        MainWindow *mainwin = mainwindow_get_mainwindow();
-       static gchar *path[3];
        gchar *rcpath;
        
        if( !check_plugin_version(MAKE_NUMERIC_VERSION(3,6,1,27),
@@ -516,10 +515,6 @@ gint plugin_init(gchar **error)
                          "Message/RemoveAtt", GTK_UI_MANAGER_MENUITEM,
                          context_menu_id)
 
-       path[0] = _("Plugins");
-       path[1] = "AttRemover";
-       path[2] = NULL;
-
        prefs_set_default(prefs);
        rcpath = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, COMMON_RC, NULL);
        prefs_read_config(prefs, PREFS_BLOCK_NAME, rcpath, NULL);
@@ -531,7 +526,6 @@ gint plugin_init(gchar **error)
 gboolean plugin_done(void)
 {
        MainWindow *mainwin = mainwindow_get_mainwindow();
-       SummaryView *summaryview = NULL;
        PrefFile *pref_file;
        gchar *rc_file_path;
 
@@ -558,8 +552,6 @@ gboolean plugin_done(void)
        if (mainwin == NULL)
                return TRUE;
 
-       summaryview = mainwin->summaryview;
-
        MENUITEM_REMUI_MANAGER(mainwin->ui_manager,mainwin->action_group, "Message/RemoveAtt", main_menu_id);
        main_menu_id = 0;