[tracker] libtracker-common: Remove unused functions tracker_dbus_gvalue_slice_*
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-common: Remove unused functions tracker_dbus_gvalue_slice_*
- Date: Tue, 28 Dec 2010 08:37:22 +0000 (UTC)
commit 8135c61f5eb6378c53e9cbf9ab4a5d753cc279d2
Author: Jürg Billeter <j bitron ch>
Date: Tue Dec 28 09:21:56 2010 +0100
libtracker-common: Remove unused functions tracker_dbus_gvalue_slice_*
src/libtracker-common/tracker-dbus.c | 18 ------------------
src/libtracker-common/tracker-dbus.h | 2 --
tests/libtracker-common/tracker-dbus-test.c | 14 --------------
3 files changed, 0 insertions(+), 34 deletions(-)
---
diff --git a/src/libtracker-common/tracker-dbus.c b/src/libtracker-common/tracker-dbus.c
index e9af630..fe42130 100644
--- a/src/libtracker-common/tracker-dbus.c
+++ b/src/libtracker-common/tracker-dbus.c
@@ -301,24 +301,6 @@ client_get_for_context (DBusGMethodInvocation *context)
return cd;
}
-GValue *
-tracker_dbus_gvalue_slice_new (GType type)
-{
- GValue *value;
-
- value = g_slice_new0 (GValue);
- g_value_init (value, type);
-
- return value;
-}
-
-void
-tracker_dbus_gvalue_slice_free (GValue *value)
-{
- g_value_unset (value);
- g_slice_free (GValue, value);
-}
-
GQuark
tracker_dbus_error_quark (void)
{
diff --git a/src/libtracker-common/tracker-dbus.h b/src/libtracker-common/tracker-dbus.h
index c62ee32..6a9ef2f 100644
--- a/src/libtracker-common/tracker-dbus.h
+++ b/src/libtracker-common/tracker-dbus.h
@@ -124,8 +124,6 @@ typedef enum {
GQuark tracker_dbus_error_quark (void);
/* Utils */
-GValue * tracker_dbus_gvalue_slice_new (GType type);
-void tracker_dbus_gvalue_slice_free (GValue *value);
gchar ** tracker_dbus_slist_to_strv (GSList *list);
gchar ** tracker_dbus_str_to_strv (const gchar *str);
gchar ** tracker_dbus_queue_str_to_strv (GQueue *queue,
diff --git a/tests/libtracker-common/tracker-dbus-test.c b/tests/libtracker-common/tracker-dbus-test.c
index ec0d02a..c2df1ee 100644
--- a/tests/libtracker-common/tracker-dbus-test.c
+++ b/tests/libtracker-common/tracker-dbus-test.c
@@ -195,18 +195,6 @@ test_dbus_request_failed (void)
}
static void
-test_dbus_gvalue ()
-{
- GValue *result = NULL;
-
- result = tracker_dbus_gvalue_slice_new (G_TYPE_INT);
- g_assert (G_VALUE_TYPE (result) == G_TYPE_INT);
- g_assert (result);
-
- tracker_dbus_gvalue_slice_free (result);
-}
-
-static void
test_dbus_utils_str_to_strv ()
{
const gchar *str = "test string";
@@ -535,8 +523,6 @@ main (int argc, char **argv) {
test_async_queue_to_strv);
g_test_add_func ("/libtracker-common/tracker-dbus/free_ptr_array",
test_results_ptr_array_free);
- g_test_add_func ("/libtracker-common/tracker-dbus/gvalue",
- test_dbus_gvalue);
g_test_add_func ("/libtracker-common/tracker-dbus/utils",
test_dbus_utils_str_to_strv);
g_test_add_func ("/libtracker-common/tracker-dbus/gfile_queue_to_strv",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]