[tracker] libtracker-extract: Remove dead code



commit 8c78579f201124265a96b22d5462f35b9570c0b6
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Jan 30 11:24:29 2017 +0100

    libtracker-extract: Remove dead code
    
    These functions are now unused, and libtracker-extract is private
    to Tracker. So these functions can be just removed.

 src/libtracker-extract/tracker-module-manager.c |   68 -----------------------
 src/libtracker-extract/tracker-module-manager.h |    7 --
 2 files changed, 0 insertions(+), 75 deletions(-)
---
diff --git a/src/libtracker-extract/tracker-module-manager.c b/src/libtracker-extract/tracker-module-manager.c
index ea7989e..c844674 100644
--- a/src/libtracker-extract/tracker-module-manager.c
+++ b/src/libtracker-extract/tracker-module-manager.c
@@ -391,74 +391,6 @@ load_module (RuleInfo *info,
        return module_info;
 }
 
-GModule *
-tracker_extract_module_manager_get_for_mimetype (const gchar                  *mimetype,
-                                                 TrackerExtractInitFunc       *init_func,
-                                                 TrackerExtractShutdownFunc   *shutdown_func,
-                                                 TrackerExtractMetadataFunc   *extract_func)
-{
-       ModuleInfo *module_info = NULL;
-       GList *mimetype_rules;
-
-       if (init_func) {
-               *init_func = NULL;
-       }
-
-       if (shutdown_func) {
-               *shutdown_func = NULL;
-       }
-
-       if (extract_func) {
-               *extract_func = NULL;
-       }
-
-       if (!initialized &&
-           !tracker_extract_module_manager_init ()) {
-               return NULL;
-       }
-
-       mimetype_rules = lookup_rules (mimetype);
-
-       if (!mimetype_rules) {
-               return NULL;
-       }
-
-       module_info = load_module (mimetype_rules->data, FALSE);
-
-       if (!module_info) {
-               return NULL;
-       }
-
-       if (extract_func) {
-               *extract_func = module_info->extract_func;
-       }
-
-       if (init_func) {
-               *init_func = module_info->init_func;
-       }
-
-       if (shutdown_func) {
-               *shutdown_func = module_info->shutdown_func;
-       }
-
-       return module_info->module;
-}
-
-gboolean
-tracker_extract_module_manager_mimetype_is_handled (const gchar *mimetype)
-{
-       GList *mimetype_rules;
-
-       if (!initialized &&
-           !tracker_extract_module_manager_init ()) {
-               return FALSE;
-       }
-
-       mimetype_rules = lookup_rules (mimetype);
-
-       return mimetype_rules != NULL;
-}
-
 static gboolean
 initialize_first_module (TrackerMimetypeInfo *info)
 {
diff --git a/src/libtracker-extract/tracker-module-manager.h b/src/libtracker-extract/tracker-module-manager.h
index 7d484cf..19305ff 100644
--- a/src/libtracker-extract/tracker-module-manager.h
+++ b/src/libtracker-extract/tracker-module-manager.h
@@ -41,13 +41,6 @@ typedef gboolean (* TrackerExtractMetadataFunc) (TrackerExtractInfo *info);
 
 
 gboolean  tracker_extract_module_manager_init                (void) G_GNUC_CONST;
-GModule * tracker_extract_module_manager_get_for_mimetype    (const gchar                  *mimetype,
-                                                              TrackerExtractInitFunc       *init_func,
-                                                              TrackerExtractShutdownFunc   *shutdown_func,
-                                                              TrackerExtractMetadataFunc   *extract_func);
-
-gboolean  tracker_extract_module_manager_mimetype_is_handled (const gchar                *mimetype);
-
 
 TrackerMimetypeInfo * tracker_extract_module_manager_get_mimetype_handlers  (const gchar *mimetype);
 GStrv                 tracker_extract_module_manager_get_fallback_rdf_types (const gchar *mimetype);


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