diff options
author | Stefano Karapetsas <[email protected]> | 2012-09-05 20:54:05 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2012-09-05 20:54:05 +0200 |
commit | e97eba684fb1b1bbe2b65624beee2402d2199004 (patch) | |
tree | bd24b3498d8f30bf1d07305bf5c80b47a1fdb298 /libcaja-private/caja-directory.c | |
parent | bb2f625689b6ffc91ab93eecb4da96a10ecdabdc (diff) | |
download | caja-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.c | 27 |
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) |