Remove set but not used variables
authorArkadiy Illarionov <qarkai@gmail.com>
Sun, 3 Mar 2024 10:53:36 +0000 (13:53 +0300)
committerColin Clark <colin.clark@cclark.uk>
Sun, 3 Mar 2024 11:52:00 +0000 (11:52 +0000)
src/collect-table.cc
src/pan-view/pan-calendar.cc
src/view-file/view-file-icon.cc

index 9fcd7c1..65702f3 100644 (file)
@@ -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<CollectInfo *>(work->data);
                                work = work->next;
-                               c++;
                                }
                        else
                                {
index be9f74e..558f79b 100644 (file)
@@ -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;
                                }
index 10caa67..10bb064 100644 (file)
@@ -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<FileData *>(work->data);
                                work = work->next;
-                               c++;
                                }
                        else
                                {