filesystemmodel: Cleanup unused defines
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Sat, 17 Dec 2022 12:24:08 +0000 (09:24 -0300)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 7 Jan 2023 13:44:34 +0000 (08:44 -0500)
They were made unused with the removal of GtkTreeModel interface
implementation.

gtk/gtkfilesystemmodel.c

index a6353c15cb1a57f95743e842cffb5043d4b8370d..5143216a5766216f780976d7a68e89e8cca656f9 100644 (file)
@@ -109,21 +109,6 @@ static void add_file (GtkFileSystemModel *model,
 static void remove_file (GtkFileSystemModel *model,
                         GFile              *file);
 
-/* iter setup:
- * @user_data: the model
- * @user_data2: GUINT_TO_POINTER of array index of current entry
- *
- * All other fields are unused. Note that the array index does not correspond
- * 1:1 with the path index as entries might not be visible.
- */
-#define ITER_INDEX(iter) GPOINTER_TO_UINT((iter)->user_data2)
-#define ITER_IS_VALID(model, iter) ((model) == (iter)->user_data)
-#define ITER_INIT_FROM_INDEX(model, _iter, _index) G_STMT_START {\
-  g_assert (_index < (model)->files->len); \
-  (_iter)->user_data = (model); \
-  (_iter)->user_data2 = GUINT_TO_POINTER (_index); \
-}G_STMT_END
-
 /*** FileModelNode ***/
 
 /* Get a FileModelNode structure given an index in the model->files array of nodes */