[at-spi2-core: 5/6] Remove test for Novell.ICEDesktop.Daemon




commit eb0da4f9f456a64d48519ddaee66aca7d72d1ac8
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Jul 7 12:50:07 2022 -0500

    Remove test for Novell.ICEDesktop.Daemon
    
    I have no idea what that even was :)

 dbind/dbtest.c | 45 ---------------------------------------------
 1 file changed, 45 deletions(-)
---
diff --git a/dbind/dbtest.c b/dbind/dbtest.c
index 511839c3..d4f56906 100644
--- a/dbind/dbtest.c
+++ b/dbind/dbtest.c
@@ -22,11 +22,6 @@
 #include <string.h>
 #include <dbind/dbind.h>
 
-/* Wow! dbus is unpleasant to use */
-
-#define DESKICE_PATH      "/Novell/ICEDesktop/Daemon"
-#define DESKICE_NAMESPACE "Novell.ICEDesktop.Daemon"
-
 void marshal (DBusMessage *msg, const char *type, void *ptr)
 {
     DBusMessageIter iter;
@@ -361,45 +356,6 @@ void test_marshalling ()
     printf ("Marshalling ok\n");
 }
 
-void test_teamspaces (DBusConnection *bus)
-{
-    GArray *spaces;
-    DBusError error;
-    int i;
-    typedef struct {
-        char *name;
-        char *id;
-        char *url;
-    } TeamSpace;
-
-    dbus_error_init (&error);
-    if (!dbind_method_call_reentrant (bus,
-                                      NULL,
-                                      DESKICE_PATH,
-                                      DESKICE_NAMESPACE,
-                                      "GetTeamList",
-                                      &error,
-                                      "=>a(sss)",
-                                      &spaces)) {
-        fprintf (stderr, "Error getting team spaces %s: %s\n",
-                 error.name, error.message);
-        dbus_error_free (&error);
-        return;
-    }
-
-    if (!spaces) {
-        fprintf (stderr, "no teamspaces\n");
-        return;
-    }
-    fprintf (stderr, "%d teamspace(s)\n", spaces->len);
-    for (i = 0; i < spaces->len; i++) {
-        TeamSpace *space = &g_array_index (spaces, TeamSpace, i);
-        fprintf (stderr, "\t%d: %s, %s, %s\n", i, space->name, space->id, space->url);
-    }
-
-    dbind_any_free_ptr ("a(sss)", spaces);
-}
-
 void test_helpers ()
 {
     dbind_find_c_alignment ("(sss)");
@@ -417,7 +373,6 @@ int main (int argc, char **argv)
 
     test_helpers ();
     test_marshalling ();
-    test_teamspaces (bus);
 
     return 0;
 }


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