[tracker/wip/carlosg/domain-ontologies: 71/116] libtracker-miner: Remove tracker_miner_fs_force_recheck()



commit d506544e2c1f77d33b476a091732bbc903a9069b
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Jun 18 01:09:26 2017 +0200

    libtracker-miner: Remove tracker_miner_fs_force_recheck()
    
    It's unused and unneeded, just set the TRACKER_DIRECTORY_FLAG_CHECK_MTIME
    flag on the TrackerIndexingTree.

 .../libtracker-miner/libtracker-miner-sections.txt |    1 -
 src/libtracker-miner/tracker-miner-fs.c            |   31 --------------------
 src/libtracker-miner/tracker-miner-fs.h            |    2 -
 src/libtracker-miner/tracker-miner.vapi            |    1 -
 4 files changed, 0 insertions(+), 35 deletions(-)
---
diff --git a/docs/reference/libtracker-miner/libtracker-miner-sections.txt 
b/docs/reference/libtracker-miner/libtracker-miner-sections.txt
index 21a5113..42384ca 100644
--- a/docs/reference/libtracker-miner/libtracker-miner-sections.txt
+++ b/docs/reference/libtracker-miner/libtracker-miner-sections.txt
@@ -194,7 +194,6 @@ tracker_miner_fs_add_directory_without_parent
 tracker_miner_fs_directory_add
 tracker_miner_fs_directory_remove
 tracker_miner_fs_directory_remove_full
-tracker_miner_fs_force_mtime_checking
 tracker_miner_fs_check_file
 tracker_miner_fs_check_file_with_priority
 tracker_miner_fs_check_directory
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 2c14764..42dc2f0 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -3551,37 +3551,6 @@ tracker_miner_fs_get_mtime_checking (TrackerMinerFS *fs)
 }
 
 /**
- * tracker_miner_fs_force_mtime_checking:
- * @fs: a #TrackerMinerFS
- * @directory: a #GFile representing the directory
- *
- * Tells @fs to force mtime checking (regardless of the global mtime check
- * configuration) on the given @directory.
- *
- * Since: 0.12
- **/
-void
-tracker_miner_fs_force_mtime_checking (TrackerMinerFS *fs,
-                                       GFile          *directory)
-{
-       TrackerDirectoryFlags flags;
-
-       g_return_if_fail (TRACKER_IS_MINER_FS (fs));
-       g_return_if_fail (G_IS_FILE (directory));
-
-       flags = TRACKER_DIRECTORY_FLAG_RECURSE |
-               TRACKER_DIRECTORY_FLAG_CHECK_MTIME;
-
-       if (!fs->priv->data_provider) {
-               flags |= TRACKER_DIRECTORY_FLAG_MONITOR;
-       }
-
-       tracker_indexing_tree_add (fs->priv->indexing_tree,
-                                  directory,
-                                  flags);
-}
-
-/**
  * tracker_miner_fs_set_initial_crawling:
  * @fs: a #TrackerMinerFS
  * @do_initial_crawling: a #gboolean
diff --git a/src/libtracker-miner/tracker-miner-fs.h b/src/libtracker-miner/tracker-miner-fs.h
index 94cd948..e82fe89 100644
--- a/src/libtracker-miner/tracker-miner-fs.h
+++ b/src/libtracker-miner/tracker-miner-fs.h
@@ -156,8 +156,6 @@ gboolean              tracker_miner_fs_directory_remove      (TrackerMinerFS  *f
                                                               GFile           *file);
 gboolean              tracker_miner_fs_directory_remove_full (TrackerMinerFS  *fs,
                                                               GFile           *file);
-void                  tracker_miner_fs_force_mtime_checking  (TrackerMinerFS  *fs,
-                                                              GFile           *directory);
 
 /* Queueing files to be processed AFTER checking rules in IndexingTree */
 void                  tracker_miner_fs_check_file            (TrackerMinerFS  *fs,
diff --git a/src/libtracker-miner/tracker-miner.vapi b/src/libtracker-miner/tracker-miner.vapi
index eaf659e..2fba620 100644
--- a/src/libtracker-miner/tracker-miner.vapi
+++ b/src/libtracker-miner/tracker-miner.vapi
@@ -119,7 +119,6 @@ namespace Tracker {
                public bool directory_remove_full (GLib.File file);
                public static GLib.Quark error_quark ();
                public void notify_finish (GLib.File file, GLib.Task task, string sparql, GLib.Error error);
-               public void force_mtime_checking (GLib.File directory);
                public unowned Tracker.DataProvider get_data_provider ();
                public unowned Tracker.IndexingTree get_indexing_tree ();
                public bool get_initial_crawling ();


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