[tracker/wip/carlosg/domain-ontologies: 77/116] libtracker-miner: Remove tracker_miner_fs_check_directory*()



commit 9f709245666e91b6bf0c15f48a65a6fa481e6b5e
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Jun 18 14:03:37 2017 +0200

    libtracker-miner: Remove tracker_miner_fs_check_directory*()
    
    More unused API that is a thin wrapper to TrackerIndexingTree, just
    remove it.

 .../libtracker-miner/libtracker-miner-sections.txt |    2 -
 src/libtracker-miner/tracker-miner-fs.c            |   82 --------------------
 src/libtracker-miner/tracker-miner-fs.h            |    8 --
 src/libtracker-miner/tracker-miner.vapi            |    2 -
 4 files changed, 0 insertions(+), 94 deletions(-)
---
diff --git a/docs/reference/libtracker-miner/libtracker-miner-sections.txt 
b/docs/reference/libtracker-miner/libtracker-miner-sections.txt
index d4b5538..c200060 100644
--- a/docs/reference/libtracker-miner/libtracker-miner-sections.txt
+++ b/docs/reference/libtracker-miner/libtracker-miner-sections.txt
@@ -188,8 +188,6 @@ tracker_miner_fs_get_throttle
 tracker_miner_fs_set_throttle
 tracker_miner_fs_check_file
 tracker_miner_fs_check_file_with_priority
-tracker_miner_fs_check_directory
-tracker_miner_fs_check_directory_with_priority
 tracker_miner_fs_writeback_file
 tracker_miner_fs_writeback_notify
 tracker_miner_fs_notify_finish
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index c2b7868..860416e 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -3001,88 +3001,6 @@ tracker_miner_fs_check_file (TrackerMinerFS *fs,
 }
 
 /**
- * tracker_miner_fs_check_directory_with_priority:
- * @fs: a #TrackerMinerFS
- * @file: #GFile for the directory to check
- * @priority: the priority of the check task
- * @check_parents: whether to check parents and eligibility or not
- *
- * Tells the filesystem miner to check and index a directory at
- * a given priority, this file must be part of the usual crawling
- * directories of #TrackerMinerFS. See tracker_miner_fs_directory_add().
- *
- * Since: 0.10
- **/
-void
-tracker_miner_fs_check_directory_with_priority (TrackerMinerFS *fs,
-                                                GFile          *file,
-                                                gint            priority,
-                                                gboolean        check_parents)
-{
-       gboolean should_process = TRUE;
-       gchar *uri;
-
-       g_return_if_fail (TRACKER_IS_MINER_FS (fs));
-       g_return_if_fail (G_IS_FILE (file));
-
-       if (check_parents) {
-               should_process = should_check_file (fs, file, TRUE);
-       }
-
-       uri = g_file_get_uri (file);
-
-       g_debug ("%s:'%s' (DIR) (requested by application)",
-                should_process ? "Found " : "Ignored",
-                uri);
-
-       if (should_process) {
-               TrackerDirectoryFlags flags;
-
-               if (check_parents && !check_file_parents (fs, file)) {
-                       return;
-               }
-
-               flags = TRACKER_DIRECTORY_FLAG_RECURSE |
-                       TRACKER_DIRECTORY_FLAG_CHECK_MTIME;
-
-               if (!fs->priv->data_provider) {
-                       flags |= TRACKER_DIRECTORY_FLAG_MONITOR;
-               }
-
-               /* Priorities run from positive to negative */
-               if (priority < G_PRIORITY_DEFAULT)
-                       flags |= TRACKER_DIRECTORY_FLAG_PRIORITY;
-
-               tracker_indexing_tree_add (fs->priv->indexing_tree,
-                                          file, flags);
-       }
-
-       g_free (uri);
-}
-
-/**
- * tracker_miner_fs_check_directory:
- * @fs: a #TrackerMinerFS
- * @file: #GFile for the directory to check
- * @check_parents: whether to check parents and eligibility or not
- *
- * Tells the filesystem miner to check and index a directory,
- * this file must be part of the usual crawling directories
- * of #TrackerMinerFS. See tracker_miner_fs_directory_add().
- *
- * Since: 0.10
- **/
-void
-tracker_miner_fs_check_directory (TrackerMinerFS *fs,
-                                  GFile          *file,
-                                  gboolean        check_parents)
-{
-       tracker_miner_fs_check_directory_with_priority (fs, file,
-                                                       G_PRIORITY_HIGH,
-                                                       check_parents);
-}
-
-/**
  * tracker_miner_fs_notify_finish:
  * @fs: a #TrackerMinerFS
  * @task: a #GTask obtained in a #TrackerMinerFS signal/vmethod
diff --git a/src/libtracker-miner/tracker-miner-fs.h b/src/libtracker-miner/tracker-miner-fs.h
index b1f2c86..4b7c174 100644
--- a/src/libtracker-miner/tracker-miner-fs.h
+++ b/src/libtracker-miner/tracker-miner-fs.h
@@ -143,14 +143,6 @@ void                  tracker_miner_fs_check_file_with_priority
                                                               GFile           *file,
                                                               gint             priority,
                                                               gboolean         check_parents);
-void                  tracker_miner_fs_check_directory       (TrackerMinerFS  *fs,
-                                                              GFile           *file,
-                                                              gboolean         check_parents);
-void                  tracker_miner_fs_check_directory_with_priority
-                                                             (TrackerMinerFS  *fs,
-                                                              GFile           *file,
-                                                              gint             priority,
-                                                              gboolean         check_parents);
 
 void                  tracker_miner_fs_writeback_file        (TrackerMinerFS  *fs,
                                                               GFile           *file,
diff --git a/src/libtracker-miner/tracker-miner.vapi b/src/libtracker-miner/tracker-miner.vapi
index 861b012..648c18a 100644
--- a/src/libtracker-miner/tracker-miner.vapi
+++ b/src/libtracker-miner/tracker-miner.vapi
@@ -109,8 +109,6 @@ namespace Tracker {
        public abstract class MinerFS : Tracker.Miner, GLib.Initable {
                [CCode (has_construct_function = false)]
                protected MinerFS ();
-               public void check_directory (GLib.File file, bool check_parents);
-               public void check_directory_with_priority (GLib.File file, int priority, bool check_parents);
                public void check_file (GLib.File file, bool check_parents);
                public void check_file_with_priority (GLib.File file, int priority, bool check_parents);
                public static GLib.Quark error_quark ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]