From: Arkadiy Illarionov Date: Sun, 3 Mar 2024 10:53:36 +0000 (+0300) Subject: Remove set but not used variables X-Git-Tag: v2.3~7 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=2c9ae87090a76e503eff4cb8654b59b9ba225951 Remove set but not used variables --- diff --git a/src/collect-table.cc b/src/collect-table.cc index 9fcd7c10..65702f3d 100644 --- a/src/collect-table.cc +++ b/src/collect-table.cc @@ -1943,19 +1943,16 @@ static void collection_table_sync(CollectTable *ct) GtkTreeIter iter; GList *work; gint r; - gint c; store = gtk_tree_view_get_model(GTK_TREE_VIEW(ct->listview)); r = -1; - c = 0; work = ct->cd->list; while (work) { GList *list; r++; - c = 0; if (gtk_tree_model_iter_nth_child(store, &iter, nullptr, r)) { gtk_tree_model_get(store, &iter, CTABLE_COLUMN_POINTER, &list, -1); @@ -1973,7 +1970,6 @@ static void collection_table_sync(CollectTable *ct) { info = static_cast(work->data); work = work->next; - c++; } else { diff --git a/src/pan-view/pan-calendar.cc b/src/pan-view/pan-calendar.cc index be9f74eb..558f79bb 100644 --- a/src/pan-view/pan-calendar.cc +++ b/src/pan-view/pan-calendar.cc @@ -301,7 +301,6 @@ void pan_calendar_compute(PanWindow *pw, FileData *dir_fd, gint *width, gint *he gint day; gint days; gint col; - gint row; time_t dt; gchar *buf; @@ -326,7 +325,6 @@ void pan_calendar_compute(PanWindow *pw, FileData *dir_fd, gint *width, gint *he col = pan_date_value(dt, PAN_DATE_LENGTH_WEEK); col = col - (date_get_first_day_of_week() - 1); if (col < 0) col = col + 7; - row = 1; x = PAN_BOX_BORDER; @@ -442,7 +440,6 @@ void pan_calendar_compute(PanWindow *pw, FileData *dir_fd, gint *width, gint *he if (col > 6) { col = 0; - row++; x = PAN_BOX_BORDER; y += PAN_CAL_DAY_HEIGHT; } diff --git a/src/view-file/view-file-icon.cc b/src/view-file/view-file-icon.cc index 10caa67a..10bb0647 100644 --- a/src/view-file/view-file-icon.cc +++ b/src/view-file/view-file-icon.cc @@ -1522,7 +1522,6 @@ static void vficon_populate(ViewFile *vf, gboolean resize, gboolean keep_positio GList *work; FileData *visible_fd = nullptr; gint r; - gint c; gboolean valid; GtkTreeIter iter; @@ -1581,7 +1580,6 @@ static void vficon_populate(ViewFile *vf, gboolean resize, gboolean keep_positio } r = -1; - c = 0; valid = gtk_tree_model_iter_children(store, &iter, nullptr); @@ -1590,7 +1588,6 @@ static void vficon_populate(ViewFile *vf, gboolean resize, gboolean keep_positio { GList *list; r++; - c = 0; if (valid) { gtk_tree_model_get(store, &iter, FILE_COLUMN_POINTER, &list, -1); @@ -1609,7 +1606,6 @@ static void vficon_populate(ViewFile *vf, gboolean resize, gboolean keep_positio { fd = static_cast(work->data); work = work->next; - c++; } else {