[tracker-miners/wip/carlosg/speed-track: 5/40] tracker-miner-fs: Remove unused function
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/speed-track: 5/40] tracker-miner-fs: Remove unused function
- Date: Sun, 18 Oct 2020 20:58:42 +0000 (UTC)
commit 061037eac46228abdd978e7eb4de0b7e22ba76bb
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Oct 4 17:18:45 2020 +0200
tracker-miner-fs: Remove unused function
This function is unused since commit 26f3ba3dda8.
src/miners/fs/tracker-miner-files.c | 38 -------------------------------------
src/miners/fs/tracker-miner-files.h | 3 ---
2 files changed, 41 deletions(-)
---
diff --git a/src/miners/fs/tracker-miner-files.c b/src/miners/fs/tracker-miner-files.c
index bb6289912..53a1a47ce 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -2753,44 +2753,6 @@ done:
return should_process;
}
-gboolean
-tracker_miner_files_check_directory_contents (GFile *parent,
- GList *children,
- GSList *ignored_content)
-{
- GSList *l;
-
- if (!ignored_content) {
- return TRUE;
- }
-
- while (children) {
- gchar *basename;
-
- basename = g_file_get_basename (children->data);
-
- for (l = ignored_content; l; l = l->next) {
- if (g_strcmp0 (basename, l->data) == 0) {
- gchar *parent_uri;
-
- parent_uri = g_file_get_uri (parent);
- /* g_debug ("Directory '%s' ignored since it contains a file named '%s'", */
- /* parent_uri, basename); */
-
- g_free (parent_uri);
- g_free (basename);
-
- return FALSE;
- }
- }
-
- children = children->next;
- g_free (basename);
- }
-
- return TRUE;
-}
-
gboolean
tracker_miner_files_monitor_directory (GFile *file,
gboolean enable_monitors,
diff --git a/src/miners/fs/tracker-miner-files.h b/src/miners/fs/tracker-miner-files.h
index 79a7bd79d..f77603410 100644
--- a/src/miners/fs/tracker-miner-files.h
+++ b/src/miners/fs/tracker-miner-files.h
@@ -62,9 +62,6 @@ gboolean tracker_miner_files_check_directory (GFile *f
GSList *index_single_directories,
GSList *ignored_directory_paths,
GSList *ignored_directory_patterns);
-gboolean tracker_miner_files_check_directory_contents (GFile *parent,
- GList *children,
- GSList *ignored_content);
gboolean tracker_miner_files_monitor_directory (GFile *file,
gboolean enable_monitors,
GSList *directories_to_check);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]