[tracker/wip/carlosg/anonymous-nodes: 27/46] libtracker-data: Remove dead code




commit 585cfd2687164ebe71eabdc8235ab0686a273f47
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Sep 21 16:41:19 2021 +0200

    libtracker-data: Remove dead code
    
    It is not necessary to query these IDs here, since they end up
    unused.

 src/libtracker-data/tracker-data-update.c | 18 ------------------
 1 file changed, 18 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index 33de6aa71..a79d48b93 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -2701,24 +2701,6 @@ tracker_data_insert_statement_with_uri (TrackerData  *data,
                                     "Class '%s' not found in the ontology", object_str);
                        return;
                }
-
-               final_prop_id = prop_id;
-
-               if (final_prop_id == 0) {
-                       final_prop_id = tracker_data_query_resource_id (data->manager,
-                                                                       iface,
-                                                                       predicate,
-                                                                       error);
-               }
-
-               if (final_prop_id == 0)
-                       return;
-
-               object_id = query_resource_id (data, object_str, error);
-               if (object_id == 0)
-                       return;
-
-               change = TRUE;
        } else {
                /* add value to metadata database */
                change = cache_insert_metadata_decomposed (data, property, object, &actual_error);


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