[tracker] libtracker-common: Remove unused function tracker_dbus_str_to_strv



commit 9d8ea8e1cf154fb1d763641e24067039a6f2145e
Author: Jürg Billeter <j bitron ch>
Date:   Tue Dec 28 09:23:49 2010 +0100

    libtracker-common: Remove unused function tracker_dbus_str_to_strv

 src/libtracker-common/tracker-dbus.c        |   12 ------------
 src/libtracker-common/tracker-dbus.h        |    1 -
 tests/libtracker-common/tracker-dbus-test.c |   15 ---------------
 3 files changed, 0 insertions(+), 28 deletions(-)
---
diff --git a/src/libtracker-common/tracker-dbus.c b/src/libtracker-common/tracker-dbus.c
index fe42130..26f3869 100644
--- a/src/libtracker-common/tracker-dbus.c
+++ b/src/libtracker-common/tracker-dbus.c
@@ -332,18 +332,6 @@ tracker_dbus_slist_to_strv (GSList *list)
 }
 
 gchar **
-tracker_dbus_str_to_strv (const gchar *str)
-{
-	gchar **strv;
-
-	strv = g_new (gchar*, 2);
-	strv[0] = g_strdup (str);
-	strv[1] = NULL;
-
-	return strv;
-}
-
-gchar **
 tracker_dbus_queue_str_to_strv (GQueue *queue,
                                 gint    max)
 {
diff --git a/src/libtracker-common/tracker-dbus.h b/src/libtracker-common/tracker-dbus.h
index 6a9ef2f..d2b5ea4 100644
--- a/src/libtracker-common/tracker-dbus.h
+++ b/src/libtracker-common/tracker-dbus.h
@@ -125,7 +125,6 @@ GQuark           tracker_dbus_error_quark            (void);
 
 /* Utils */
 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,
                                                       gint                        max);
 gchar **         tracker_dbus_queue_gfile_to_strv    (GQueue                     *queue,
diff --git a/tests/libtracker-common/tracker-dbus-test.c b/tests/libtracker-common/tracker-dbus-test.c
index c2df1ee..9412bf6 100644
--- a/tests/libtracker-common/tracker-dbus-test.c
+++ b/tests/libtracker-common/tracker-dbus-test.c
@@ -194,19 +194,6 @@ test_dbus_request_failed (void)
 	g_test_trap_assert_stderr ("*Unset error and no error message*");
 }
 
-static void
-test_dbus_utils_str_to_strv ()
-{
-        const gchar *str = "test string";
-        gchar **result = NULL;
-
-        result = tracker_dbus_str_to_strv (str);
-        g_assert (result);
-        g_assert_cmpint (g_strv_length (result), ==, 1);
-        g_strfreev (result);
-        
-}
-
 static GQueue *
 helper_get_queue_with_gfiles (int n)
 {
@@ -523,8 +510,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/utils",
-                         test_dbus_utils_str_to_strv);
         g_test_add_func ("/libtracker-common/tracker-dbus/gfile_queue_to_strv",
                          test_dbus_gfile_queue_to_strv);
         g_test_add_func ("/libtracker-common/tracker-dbus/request",



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