summaryrefslogtreecommitdiff
path: root/src/file-manager
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-08-21 03:29:50 +0300
committermonsta <[email protected]>2016-08-22 16:40:21 +0300
commit3c6122df79f4d6e86d7afa0e6c4b64403de7bc44 (patch)
treebd06579cadb62b290fb983f61a02e4dedb3f64b1 /src/file-manager
parent6f295db45ebcb52c6e9ad39f8d639e35f88c5ef5 (diff)
downloadcaja-3c6122df79f4d6e86d7afa0e6c4b64403de7bc44.tar.bz2
caja-3c6122df79f4d6e86d7afa0e6c4b64403de7bc44.tar.xz
drop a large amount of completely unused code
Diffstat (limited to 'src/file-manager')
-rw-r--r--src/file-manager/fm-list-model.c26
-rw-r--r--src/file-manager/fm-list-model.h2
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);