summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-directory.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-09-05 20:54:05 +0200
committerStefano Karapetsas <[email protected]>2012-09-05 20:54:05 +0200
commite97eba684fb1b1bbe2b65624beee2402d2199004 (patch)
treebd24b3498d8f30bf1d07305bf5c80b47a1fdb298 /libcaja-private/caja-directory.c
parentbb2f625689b6ffc91ab93eecb4da96a10ecdabdc (diff)
downloadcaja-e97eba684fb1b1bbe2b65624beee2402d2199004.tar.bz2
caja-e97eba684fb1b1bbe2b65624beee2402d2199004.tar.xz
remove old file-limit preference
Diffstat (limited to 'libcaja-private/caja-directory.c')
-rw-r--r--libcaja-private/caja-directory.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/libcaja-private/caja-directory.c b/libcaja-private/caja-directory.c
index faa6a22c..6479b38a 100644
--- a/libcaja-private/caja-directory.c
+++ b/libcaja-private/caja-directory.c
@@ -718,33 +718,6 @@ caja_directory_remove_file (CajaDirectory *directory, CajaFile *file)
}
}
-#define CAJA_DIRECTORY_FILE_LIST_DEFAULT_LIMIT 4000
-
-gboolean
-caja_directory_file_list_length_reached (CajaDirectory *directory)
-{
- static gboolean inited = FALSE;
- static int directory_limit = 0;
-
- if (!inited)
- {
- eel_preferences_add_auto_integer
- ("/apps/caja/preferences/directory_limit",
- &directory_limit);
- inited = TRUE;
- }
- if (directory_limit < 0) /* unlimited */
- {
- return FALSE;
- }
- if (directory_limit == 0) /* dead mateconfd */
- {
- directory_limit = CAJA_DIRECTORY_FILE_LIST_DEFAULT_LIMIT;
- }
-
- return directory->details->confirmed_file_count >= directory_limit;
-}
-
GList *
caja_directory_begin_file_name_change (CajaDirectory *directory,
CajaFile *file)