Drop a bunch of unused variables.
authorLaurent Monin <geeqie@norz.org>
Thu, 3 Apr 2008 22:20:42 +0000 (22:20 +0000)
committerLaurent Monin <geeqie@norz.org>
Thu, 3 Apr 2008 22:20:42 +0000 (22:20 +0000)
src/pan-view.c
src/rcfile.c
src/search.c
src/view_dir_list.c
src/view_dir_tree.c
src/view_file_icon.c
src/view_file_list.c

index 7a1e18e..b72602b 100644 (file)
@@ -686,8 +686,7 @@ void pan_cache_sync_date(PanWindow *pw, GList *list)
                while (needle)
                        {
                        PanCacheData *pc;
-                       gchar *path;
-
+                       
                        pc = needle->data;
                        if (pc->fd == fd)
                                {
index 18cc417..8106417 100644 (file)
@@ -90,8 +90,7 @@ gchar *quoted_value(const gchar *text, const gchar **tail)
 gchar *escquote_value(const gchar *text)
 {
        gchar *e;
-       gchar *retval;
-
+       
        if (!text) return g_strdup("\"\"");
 
        e = g_strescape(text, "");
index 2393d5f..11ac037 100644 (file)
@@ -912,8 +912,7 @@ static void sr_menu_collection_cb(GtkWidget *widget, gpointer data)
 static void sr_menu_print_cb(GtkWidget *widget, gpointer data)
 {
        SearchData *sd = data;
-       FileData *fd;
-
+       
        print_window_new(sd->click_fd, search_result_selection_list(sd),
                         search_result_get_filelist(sd), sd->window);
 }
index 36ef682..f973262 100644 (file)
@@ -276,7 +276,6 @@ static void vdlist_pop_menu_slide_rec_cb(GtkWidget *widget, gpointer data)
 static void vdlist_pop_menu_dupe(ViewDirList *vdl, gint recursive)
 {
        DupeWindow *dw;
-       const gchar *path;
        GList *list = NULL;
 
        if (!vdl->click_fd) return;
@@ -470,7 +469,6 @@ static void vdlist_dnd_get(GtkWidget *widget, GdkDragContext *context,
                           guint time, gpointer data)
 {
        ViewDirList *vdl = data;
-       gchar *path;
        GList *list;
        gchar *text = NULL;
        gint length = 0;
index 6cba087..91790bc 100644 (file)
@@ -551,7 +551,6 @@ static void vdtree_dnd_get(GtkWidget *widget, GdkDragContext *context,
                           guint time, gpointer data)
 {
        ViewDirTree *vdt = data;
-       gchar *path;
        GList *list;
        gchar *uri_text = NULL;
        gint length = 0;
@@ -1073,7 +1072,6 @@ static gint vdtree_populate_path_by_iter(ViewDirTree *vdt, GtkTreeIter *iter, gi
                if (target_path[n] == '/' && target_path[n+1] == '.')
                        {
                        gchar *name8;
-                       gchar *namel;
                        struct stat sbuf;
 
                        n++;
index 980c8d0..d750d7f 100644 (file)
@@ -2206,7 +2206,6 @@ static gint vficon_refresh_real(ViewFileIcon *vfi, gint keep_position)
        while (work)
                {
                IconData *id = work->data;
-               FileData *fd = id->fd;
                work = work->next;
 
                if (id == vfi->prev_selection) vfi->prev_selection = NULL;
index 300497f..1e8ad5b 100644 (file)
@@ -956,7 +956,6 @@ static void vflist_setup_iter(ViewFileList *vfl, GtkTreeStore *store, GtkTreeIte
 static void vflist_setup_iter_with_sidecars(ViewFileList *vfl, GtkTreeStore *store, GtkTreeIter *iter, FileData *fd)
 {
        GList *work;
-       GtkTreeIter new;
        GtkTreeIter s_iter;
        gint valid;
 
@@ -1868,7 +1867,6 @@ static void vflist_listview_add_column(ViewFileList *vfl, gint n, const gchar *t
 static void vflist_listview_mark_toggled(GtkCellRendererToggle *cell, gchar *path_str, GtkTreeStore *store)
 {
        GtkTreePath *path = gtk_tree_path_new_from_string(path_str);
-       guint *marks;
        GtkTreeIter iter;
        FileData *fd;
        gboolean mark;
@@ -2071,8 +2069,6 @@ void vflist_thumb_set(ViewFileList *vfl, gint enable)
 
 void vflist_marks_set(ViewFileList *vfl, gint enable)
 {
-       GtkTreeStore *store;
-       GtkTreeViewColumn *column;
        GList *columns, *work;
     
        if (vfl->marks_enabled == enable) return;
@@ -2166,7 +2162,6 @@ gint vflist_maint_renamed(ViewFileList *vfl, FileData *fd)
        gint ret = FALSE;
        gchar *source_base;
        gchar *dest_base;
-       GList *work;
 
        if (g_list_index(vfl->list, fd) < 0) return FALSE;