[tracker] libtracker-common: Remove unused function tracker_dbus_data_new
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-common: Remove unused function tracker_dbus_data_new
- Date: Tue, 28 Dec 2010 08:37:17 +0000 (UTC)
commit 07e3fd618d9080f3d9858ac43d8dee85e4cc6ca2
Author: Jürg Billeter <j bitron ch>
Date: Tue Dec 28 09:20:20 2010 +0100
libtracker-common: Remove unused function tracker_dbus_data_new
src/libtracker-common/tracker-dbus.c | 16 ----------------
src/libtracker-common/tracker-dbus.h | 8 --------
tests/libtracker-common/tracker-dbus-test.c | 21 ---------------------
3 files changed, 0 insertions(+), 45 deletions(-)
---
diff --git a/src/libtracker-common/tracker-dbus.c b/src/libtracker-common/tracker-dbus.c
index fe8cd32..e9af630 100644
--- a/src/libtracker-common/tracker-dbus.c
+++ b/src/libtracker-common/tracker-dbus.c
@@ -325,22 +325,6 @@ tracker_dbus_error_quark (void)
return g_quark_from_static_string (TRACKER_DBUS_ERROR_DOMAIN);
}
-TrackerDBusData *
-tracker_dbus_data_new (const gpointer arg1,
- const gpointer arg2)
-{
- TrackerDBusData *data;
-
- data = g_new0 (TrackerDBusData, 1);
-
- data->id = tracker_dbus_get_next_request_id ();
-
- data->data1 = arg1;
- data->data2 = arg2;
-
- return data;
-}
-
gchar **
tracker_dbus_slist_to_strv (GSList *list)
{
diff --git a/src/libtracker-common/tracker-dbus.h b/src/libtracker-common/tracker-dbus.h
index 3053df3..c62ee32 100644
--- a/src/libtracker-common/tracker-dbus.h
+++ b/src/libtracker-common/tracker-dbus.h
@@ -109,12 +109,6 @@ typedef void (*TrackerDBusSendAndSpliceCallback) (void *buffer,
GError *error,
gpointer user_data);
-typedef struct {
- guint id;
- gpointer data1;
- gpointer data2;
-} TrackerDBusData;
-
typedef enum {
TRACKER_DBUS_EVENTS_TYPE_ADD,
TRACKER_DBUS_EVENTS_TYPE_UPDATE,
@@ -128,8 +122,6 @@ typedef enum {
} TrackerDBusError;
GQuark tracker_dbus_error_quark (void);
-TrackerDBusData *tracker_dbus_data_new (const gpointer arg1,
- const gpointer arg2);
/* Utils */
GValue * tracker_dbus_gvalue_slice_new (GType type);
diff --git a/tests/libtracker-common/tracker-dbus-test.c b/tests/libtracker-common/tracker-dbus-test.c
index c029eb4..ec0d02a 100644
--- a/tests/libtracker-common/tracker-dbus-test.c
+++ b/tests/libtracker-common/tracker-dbus-test.c
@@ -516,25 +516,6 @@ test_dbus_hooks ()
g_assert_cmpint (hook_done_called, ==, 2);
}
-static void
-test_dbus_dbus_data ()
-{
- /* just for coverage numbers... nothing to test here */
- const gchar *one = "one";
- const gchar *two = "two";
- TrackerDBusData *data = NULL;
- gint request_id;
-
- request_id = tracker_dbus_get_next_request_id ();
- data = tracker_dbus_data_new ((const gpointer)one, (const gpointer)two);
-
- g_assert (data);
- g_assert_cmpint (data->id, ==, request_id+1);
- g_assert_cmpstr ((gchar *)data->data1, ==, one);
- g_assert_cmpstr ((gchar *)data->data2, ==, two);
-
-}
-
int
main (int argc, char **argv) {
@@ -572,8 +553,6 @@ main (int argc, char **argv) {
test_dbus_request_failed_coverage);
g_test_add_func ("/libtracker-common/tracker-dbus/hooks",
test_dbus_hooks);
- g_test_add_func ("/libtracker-common/tracker-dbus/dbus_data",
- test_dbus_dbus_data);
result = g_test_run ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]