[tracker/wip/carlosg/anonymous-nodes: 3/24] libtracker-data: Drop unused argument from insert/delete hooks
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/anonymous-nodes: 3/24] libtracker-data: Drop unused argument from insert/delete hooks
- Date: Fri, 8 Oct 2021 09:40:54 +0000 (UTC)
commit 9b1b47dbd11451bb63135aa749630ee5cc0b2d32
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Sep 21 14:06:51 2021 +0200
libtracker-data: Drop unused argument from insert/delete hooks
This argument is unused (changed resource URIs are queried later on by
the notifier when required), and it is the intention to drop resource
URIs in the tracker-data-update.c machinery. This is a step towards
this cleanup.
src/libtracker-data/tracker-data-update.c | 2 --
src/libtracker-data/tracker-data-update.h | 1 -
src/libtracker-sparql/direct/tracker-direct.c | 2 --
3 files changed, 5 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index b5d98696f..030c5069a 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -335,7 +335,6 @@ tracker_data_dispatch_insert_statement_callbacks (TrackerData *data,
delegate->callback (data->resource_buffer->graph->id,
data->resource_buffer->graph->graph,
data->resource_buffer->id,
- data->resource_buffer->subject,
predicate_id,
object_id,
object,
@@ -399,7 +398,6 @@ tracker_data_dispatch_delete_statement_callbacks (TrackerData *data,
delegate->callback (data->resource_buffer->graph->id,
data->resource_buffer->graph->graph,
data->resource_buffer->id,
- data->resource_buffer->subject,
predicate_id,
object_id,
object,
diff --git a/src/libtracker-data/tracker-data-update.h b/src/libtracker-data/tracker-data-update.h
index eb79f34ef..23c7078de 100644
--- a/src/libtracker-data/tracker-data-update.h
+++ b/src/libtracker-data/tracker-data-update.h
@@ -48,7 +48,6 @@ typedef struct _TrackerData TrackerDataUpdate;
typedef void (*TrackerStatementCallback) (gint graph_id,
const gchar *graph,
gint subject_id,
- const gchar *subject,
gint predicate_id,
gint object_id,
const gchar *object,
diff --git a/src/libtracker-sparql/direct/tracker-direct.c b/src/libtracker-sparql/direct/tracker-direct.c
index 12e6b1db7..2afb8082d 100644
--- a/src/libtracker-sparql/direct/tracker-direct.c
+++ b/src/libtracker-sparql/direct/tracker-direct.c
@@ -488,7 +488,6 @@ static void
insert_statement_cb (gint graph_id,
const gchar *graph,
gint subject_id,
- const gchar *subject,
gint predicate_id,
gint object_id,
const gchar *object,
@@ -534,7 +533,6 @@ static void
delete_statement_cb (gint graph_id,
const gchar *graph,
gint subject_id,
- const gchar *subject,
gint predicate_id,
gint object_id,
const gchar *object,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]