summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-search-directory-file.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-12-23 11:14:36 -0800
committerStefano Karapetsas <[email protected]>2012-12-23 11:14:36 -0800
commit3ec2cb1ade8ed91ed472091adcc592485dc49f4d (patch)
tree122f234160898266040a89a6767871856bd607c9 /libcaja-private/caja-search-directory-file.c
parent8379b1dc107c9e0daf31ef1b654c9ab44d9bac23 (diff)
parentc598aa7e65d9e370c63f883acbbb6504044c2531 (diff)
downloadcaja-3ec2cb1ade8ed91ed472091adcc592485dc49f4d.tar.bz2
caja-3ec2cb1ade8ed91ed472091adcc592485dc49f4d.tar.xz
Merge pull request #65 from jasmineaura/develop
Most of remaining deprecations, some cleanups, and a leak fix
Diffstat (limited to 'libcaja-private/caja-search-directory-file.c')
-rw-r--r--libcaja-private/caja-search-directory-file.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/libcaja-private/caja-search-directory-file.c b/libcaja-private/caja-search-directory-file.c
index 8fc99093..1beeb265 100644
--- a/libcaja-private/caja-search-directory-file.c
+++ b/libcaja-private/caja-search-directory-file.c
@@ -98,13 +98,10 @@ search_directory_file_get_item_count (CajaFile *file,
guint *count,
gboolean *count_unreadable)
{
- CajaSearchDirectory *search_dir;
GList *file_list;
if (count)
{
- search_dir = CAJA_SEARCH_DIRECTORY (file->details->directory);
-
file_list = caja_directory_get_file_list (file->details->directory);
*count = g_list_length (file_list);
@@ -122,14 +119,11 @@ search_directory_file_get_deep_counts (CajaFile *file,
guint *unreadable_directory_count,
goffset *total_size)
{
- CajaSearchDirectory *search_dir;
CajaFile *dir_file;
GList *file_list, *l;
guint dirs, files;
GFileType type;
- search_dir = CAJA_SEARCH_DIRECTORY (file->details->directory);
-
file_list = caja_directory_get_file_list (file->details->directory);
dirs = files = 0;
@@ -241,10 +235,8 @@ caja_search_directory_file_init (CajaSearchDirectoryFile *search_file)
static void
caja_search_directory_file_class_init (CajaSearchDirectoryFileClass *klass)
{
- GObjectClass *object_class;
CajaFileClass *file_class;
- object_class = G_OBJECT_CLASS (klass);
file_class = CAJA_FILE_CLASS (klass);
file_class->default_file_type = G_FILE_TYPE_DIRECTORY;