# HG changeset patch # User zas_ # Date 1207261242 0 # Node ID 22ed43d4c849dfb8070bb94f4e36c688bb1dd7fb # Parent c1d7b6d5f2281f9d171ce212430823b3e434747f Drop a bunch of unused variables. diff -r c1d7b6d5f228 -r 22ed43d4c849 src/pan-view.c --- a/src/pan-view.c Thu Apr 03 22:14:37 2008 +0000 +++ b/src/pan-view.c Thu Apr 03 22:20:42 2008 +0000 @@ -686,8 +686,7 @@ while (needle) { PanCacheData *pc; - gchar *path; - + pc = needle->data; if (pc->fd == fd) { diff -r c1d7b6d5f228 -r 22ed43d4c849 src/rcfile.c --- a/src/rcfile.c Thu Apr 03 22:14:37 2008 +0000 +++ b/src/rcfile.c Thu Apr 03 22:20:42 2008 +0000 @@ -90,8 +90,7 @@ gchar *escquote_value(const gchar *text) { gchar *e; - gchar *retval; - + if (!text) return g_strdup("\"\""); e = g_strescape(text, ""); diff -r c1d7b6d5f228 -r 22ed43d4c849 src/search.c --- a/src/search.c Thu Apr 03 22:14:37 2008 +0000 +++ b/src/search.c Thu Apr 03 22:20:42 2008 +0000 @@ -912,8 +912,7 @@ 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); } diff -r c1d7b6d5f228 -r 22ed43d4c849 src/view_dir_list.c --- a/src/view_dir_list.c Thu Apr 03 22:14:37 2008 +0000 +++ b/src/view_dir_list.c Thu Apr 03 22:20:42 2008 +0000 @@ -276,7 +276,6 @@ 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 @@ guint time, gpointer data) { ViewDirList *vdl = data; - gchar *path; GList *list; gchar *text = NULL; gint length = 0; diff -r c1d7b6d5f228 -r 22ed43d4c849 src/view_dir_tree.c --- a/src/view_dir_tree.c Thu Apr 03 22:14:37 2008 +0000 +++ b/src/view_dir_tree.c Thu Apr 03 22:20:42 2008 +0000 @@ -551,7 +551,6 @@ guint time, gpointer data) { ViewDirTree *vdt = data; - gchar *path; GList *list; gchar *uri_text = NULL; gint length = 0; @@ -1073,7 +1072,6 @@ if (target_path[n] == '/' && target_path[n+1] == '.') { gchar *name8; - gchar *namel; struct stat sbuf; n++; diff -r c1d7b6d5f228 -r 22ed43d4c849 src/view_file_icon.c --- a/src/view_file_icon.c Thu Apr 03 22:14:37 2008 +0000 +++ b/src/view_file_icon.c Thu Apr 03 22:20:42 2008 +0000 @@ -2206,7 +2206,6 @@ while (work) { IconData *id = work->data; - FileData *fd = id->fd; work = work->next; if (id == vfi->prev_selection) vfi->prev_selection = NULL; diff -r c1d7b6d5f228 -r 22ed43d4c849 src/view_file_list.c --- a/src/view_file_list.c Thu Apr 03 22:14:37 2008 +0000 +++ b/src/view_file_list.c Thu Apr 03 22:20:42 2008 +0000 @@ -956,7 +956,6 @@ 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_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_marks_set(ViewFileList *vfl, gint enable) { - GtkTreeStore *store; - GtkTreeViewColumn *column; GList *columns, *work; if (vfl->marks_enabled == enable) return; @@ -2166,7 +2162,6 @@ gint ret = FALSE; gchar *source_base; gchar *dest_base; - GList *work; if (g_list_index(vfl->list, fd) < 0) return FALSE;