filesystemmodel: Cleanup unused defines

They were made unused with the removal of GtkTreeModel interface
implementation.
This commit is contained in:
Georges Basile Stavracas Neto 2022-12-17 09:24:08 -03:00 committed by Matthias Clasen
parent 7801dd8944
commit 4a5a466975

View 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 */