[tracker-miners/wip/carlosg/speed-track: 4/40] libtracker-miner: Drop tracker_file_notifier_get_file_type()
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/speed-track: 4/40] libtracker-miner: Drop tracker_file_notifier_get_file_type()
- Date: Sun, 18 Oct 2020 20:58:42 +0000 (UTC)
commit 1ba0a493ae1235d2bbac03ce75435176620b0cff
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Oct 4 16:43:52 2020 +0200
libtracker-miner: Drop tracker_file_notifier_get_file_type()
This function is now unused.
src/libtracker-miner/tracker-file-notifier.c | 22 ----------------------
src/libtracker-miner/tracker-file-notifier.h | 3 ---
2 files changed, 25 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-file-notifier.c b/src/libtracker-miner/tracker-file-notifier.c
index 8513b3629..770948092 100644
--- a/src/libtracker-miner/tracker-file-notifier.c
+++ b/src/libtracker-miner/tracker-file-notifier.c
@@ -2078,25 +2078,3 @@ tracker_file_notifier_invalidate_file_iri (TrackerFileNotifier *notifier,
-1,
priv->file_system);
}
-
-GFileType
-tracker_file_notifier_get_file_type (TrackerFileNotifier *notifier,
- GFile *file)
-{
- TrackerFileNotifierPrivate *priv;
- GFile *canonical;
-
- g_return_val_if_fail (TRACKER_IS_FILE_NOTIFIER (notifier), G_FILE_TYPE_UNKNOWN);
- g_return_val_if_fail (G_IS_FILE (file), G_FILE_TYPE_UNKNOWN);
-
- priv = tracker_file_notifier_get_instance_private (notifier);
- canonical = tracker_file_system_get_file (priv->file_system,
- file,
- G_FILE_TYPE_REGULAR,
- NULL);
- if (!canonical) {
- return G_FILE_TYPE_UNKNOWN;
- }
-
- return tracker_file_system_get_file_type (priv->file_system, canonical);
-}
diff --git a/src/libtracker-miner/tracker-file-notifier.h b/src/libtracker-miner/tracker-file-notifier.h
index f9cd69202..615491205 100644
--- a/src/libtracker-miner/tracker-file-notifier.h
+++ b/src/libtracker-miner/tracker-file-notifier.h
@@ -95,9 +95,6 @@ void tracker_file_notifier_invalidate_file_iri (TrackerFileNotifier *no
gboolean tracker_file_notifier_query_file_exists (TrackerFileNotifier *notifier,
GFile *file);
-GFileType tracker_file_notifier_get_file_type (TrackerFileNotifier *notifier,
- GFile *file);
-
G_END_DECLS
#endif /* __TRACKER_FILE_SYSTEM_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]