[polari/wip/carlosg/tracker: 442/445] lib: Drop no longer needed API
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/carlosg/tracker: 442/445] lib: Drop no longer needed API
- Date: Mon, 21 Jun 2021 22:04:11 +0000 (UTC)
commit 40d96be102a17abbe8d6f3986621b9d1b6efe87d
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Jun 19 12:20:47 2021 +0200
lib: Drop no longer needed API
It is preferred to export a PolariMessage as a TrackerResource, it's
no longer necessary to get a SPARQL update string for it.
src/lib/polari-message.c | 22 ----------------------
src/lib/polari-message.h | 5 -----
2 files changed, 27 deletions(-)
---
diff --git a/src/lib/polari-message.c b/src/lib/polari-message.c
index 4bc2ad3a..5737a88e 100644
--- a/src/lib/polari-message.c
+++ b/src/lib/polari-message.c
@@ -228,25 +228,3 @@ polari_message_to_tracker_resource (PolariMessage *message,
return res;
}
-
-/**
- * polari_message_to_sparql:
- *
- * Returns: (transfer full):
- */
-gchar *
-polari_message_to_sparql (PolariMessage *message,
- TrackerSparqlConnection *connection,
- const char *account_id,
- const char *channel_name,
- gboolean is_room)
-{
- TrackerNamespaceManager *ns_manager;
- TrackerResource *res;
-
- res = polari_message_to_tracker_resource (message, account_id,
- channel_name, is_room);
- ns_manager = tracker_sparql_connection_get_namespace_manager (connection);
-
- return tracker_resource_print_sparql_update (res, ns_manager, NULL);
-}
diff --git a/src/lib/polari-message.h b/src/lib/polari-message.h
index 88eec14c..dc4c0965 100644
--- a/src/lib/polari-message.h
+++ b/src/lib/polari-message.h
@@ -49,11 +49,6 @@ TrackerResource *polari_message_to_tracker_resource (PolariMessage *message,
const char *account_id,
const char *channel_name,
gboolean is_room);
-gchar * polari_message_to_sparql (PolariMessage *message,
- TrackerSparqlConnection *connection,
- const char *account_id,
- const char *channel_name,
- gboolean is_room);
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolariMessage, polari_message_free)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]