[tracker/wip/carlosg/portal: 116/141] libtracker-data: Remove dead code



commit 91831c6f89743ae4ed956fbe90f207e67664248d
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Jan 23 17:53:21 2020 +0100

    libtracker-data: Remove dead code
    
    This function is unused.

 src/libtracker-data/tracker-data-manager.c | 24 ------------------------
 src/libtracker-data/tracker-data-manager.h |  2 --
 2 files changed, 26 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index fe653b4a8..ec57030e9 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -5058,30 +5058,6 @@ tracker_data_manager_find_graph (TrackerDataManager *manager,
        return GPOINTER_TO_UINT (g_hash_table_lookup (graphs, name));
 }
 
-const gchar *
-tracker_data_manager_find_graph_by_id (TrackerDataManager *manager,
-                                       gint                id)
-{
-       TrackerDBInterface *iface;
-       GHashTableIter iter;
-       GHashTable *graphs;
-       gpointer key, value;
-
-       iface = tracker_db_manager_get_writable_db_interface (manager->db_manager);
-       graphs = tracker_data_manager_ensure_graphs (manager, iface, NULL);
-
-       if (!graphs)
-               return NULL;
-
-       g_hash_table_iter_init (&iter, graphs);
-       while (g_hash_table_iter_next (&iter, &key, &value)) {
-               if (id == GPOINTER_TO_INT (value))
-                       return key;
-       }
-
-       return NULL;
-}
-
 gboolean
 tracker_data_manager_clear_graph (TrackerDataManager  *manager,
                                   const gchar         *graph,
diff --git a/src/libtracker-data/tracker-data-manager.h b/src/libtracker-data/tracker-data-manager.h
index c3dd32d6d..16ec6ad14 100644
--- a/src/libtracker-data/tracker-data-manager.h
+++ b/src/libtracker-data/tracker-data-manager.h
@@ -98,8 +98,6 @@ GHashTable *         tracker_data_manager_get_graphs       (TrackerDataManager *
 
 gint                 tracker_data_manager_find_graph       (TrackerDataManager *manager,
                                                             const gchar        *name);
-const gchar *        tracker_data_manager_find_graph_by_id (TrackerDataManager *manager,
-                                                            gint                id);
 
 G_END_DECLS
 


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