[tracker/wip/carlosg/portal: 87/113] libtracker-data: Remove dead code
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/portal: 87/113] libtracker-data: Remove dead code
- Date: Sun, 21 Jun 2020 09:57:12 +0000 (UTC)
commit d76b33569ff9817fae07c007536ecef32686da47
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 1423911aa..519581b23 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -4911,30 +4911,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 cc0afc2e8..0f61343af 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);
guint tracker_data_manager_get_generation (TrackerDataManager *manager);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]