diff options
Diffstat (limited to 'src/file-manager')
-rw-r--r-- | src/file-manager/fm-list-model.c | 26 | ||||
-rw-r--r-- | src/file-manager/fm-list-model.h | 2 |
2 files changed, 0 insertions, 28 deletions
diff --git a/src/file-manager/fm-list-model.c b/src/file-manager/fm-list-model.c index 1bf2d599..f33da35d 100644 --- a/src/file-manager/fm-list-model.c +++ b/src/file-manager/fm-list-model.c @@ -1593,32 +1593,6 @@ fm_list_model_add_column (FMListModel *model, return FM_LIST_MODEL_NUM_COLUMNS + (model->details->columns->len - 1); } -int -fm_list_model_get_column_number (FMListModel *model, - const char *column_name) -{ - int i; - - for (i = 0; i < model->details->columns->len; i++) - { - CajaColumn *column; - char *name; - - column = model->details->columns->pdata[i]; - - g_object_get (G_OBJECT (column), "name", &name, NULL); - - if (!strcmp (name, column_name)) - { - g_free (name); - return FM_LIST_MODEL_NUM_COLUMNS + i; - } - g_free (name); - } - - return -1; -} - static void fm_list_model_dispose (GObject *object) { diff --git a/src/file-manager/fm-list-model.h b/src/file-manager/fm-list-model.h index 2d4ff88b..33b5add7 100644 --- a/src/file-manager/fm-list-model.h +++ b/src/file-manager/fm-list-model.h @@ -127,8 +127,6 @@ int fm_list_model_compare_func (FMListModel *model, int fm_list_model_add_column (FMListModel *model, CajaColumn *column); -int fm_list_model_get_column_number (FMListModel *model, - const char *column_name); void fm_list_model_subdirectory_done_loading (FMListModel *model, CajaDirectory *directory); |