cleanup: remove some disabled code
[geeqie.git] / src / view_file_icon.c
index 8f26b07..eca8b07 100644 (file)
@@ -1744,76 +1744,6 @@ static void vficon_populate_at_new_size(ViewFile *vf, gint w, gint h, gboolean f
        DEBUG_1("col tab pop cols=%d rows=%d", VFICON(vf)->columns, VFICON(vf)->rows);
 }
 
-#if 0
-static void vficon_sync(ViewFile *vf)
-{
-       GtkTreeModel *store;
-       GtkTreeIter iter;
-       GList *work;
-       gint r, c;
-       gint valid;
-
-       if (VFICON(vf)->rows == 0) return;
-
-       store = gtk_tree_view_get_model(GTK_TREE_VIEW(vf->listview));
-
-       r = -1;
-       c = 0;
-
-       valid = gtk_tree_model_iter_children(store, &iter, NULL);
-
-       work = vf->list;
-       while (work)
-               {
-               GList *list;
-               r++;
-               c = 0;
-               if (valid)
-                       {
-                       gtk_tree_model_get(store, &iter, FILE_COLUMN_POINTER, &list, -1);
-                       gtk_list_store_set(GTK_LIST_STORE(store), &iter, FILE_COLUMN_POINTER, list, -1);
-                       }
-               else
-                       {
-                       list = vficon_add_row(vf, &iter);
-                       }
-
-               while (list)
-                       {
-                       IconData *id;
-
-                       if (work)
-                               {
-                               id = work->data;
-                               work = work->next;
-                               c++;
-                               }
-                       else
-                               {
-                               id = NULL;
-                               }
-
-                       list->data = id;
-                       list = list->next;
-                       }
-               if (valid) valid = gtk_tree_model_iter_next(store, &iter);
-               }
-
-       r++;
-       while (valid)
-               {
-               GList *list;
-
-               gtk_tree_model_get(store, &iter, FILE_COLUMN_POINTER, &list, -1);
-               valid = gtk_list_store_remove(GTK_LIST_STORE(store), &iter);
-               g_list_free(list);
-               }
-
-       VFICON(vf)->rows = r;
-
-       vficon_update_focus(vf);
-}
-#endif
 
 #if 0
 static void vficon_sync_idle(ViewFile *vf)