[tracker/wip/carlosg/portal: 4/29] libtracker-data: Remove dead code



commit b551a3f1597b1d2c339dc0e8d78ec12bb330195f
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 7a71922c7..e526cac0e 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -5094,30 +5094,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]