Mercurial > geeqie.yaz
changeset 250:22ed43d4c849
Drop a bunch of unused variables.
author | zas_ |
---|---|
date | Thu, 03 Apr 2008 22:20:42 +0000 |
parents | c1d7b6d5f228 |
children | 4190882d1a82 |
files | 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 |
diffstat | 7 files changed, 3 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- 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) {
--- 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, "");
--- 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); }
--- 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;
--- 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++;
--- 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;
--- 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;