registryd: Remove some unused code
authorMike Gorse <mgorse@suse.com>
Mon, 17 Feb 2014 17:43:28 +0000 (11:43 -0600)
committerMike Gorse <mgorse@suse.com>
Mon, 17 Feb 2014 17:43:28 +0000 (11:43 -0600)
registryd/de-marshaller.c
registryd/registry-main.c

index 8b2b00f..fef8e48 100644 (file)
@@ -100,25 +100,3 @@ dbus_bool_t spi_dbus_demarshal_deviceEvent(DBusMessage *message, Accessibility_D
   e->modifiers = modifiers;
   return TRUE;
 }
-
-/*
- * This is a rather annoying function needed to replace
- * NULL values of strings with the empty string. Null string
- * values can be created by the atk_object_get_name or text selection
- */
-static const void *
-provide_defaults(const gint type,
-                const void *val)
-{
-  switch (type)
-    {
-      case DBUS_TYPE_STRING:
-      case DBUS_TYPE_OBJECT_PATH:
-          if (!val)
-             return "";
-          else
-             return val;
-      default:
-          return val;
-    }
-}
index 1b8676f..e8133fe 100644 (file)
@@ -47,7 +47,6 @@ static GOptionEntry optentries[] =
   {NULL}
 };
 
-static GDBusConnection *bus_connection = NULL;
 static GDBusProxy      *sm_proxy = NULL;
 static char            *client_id = NULL;
 static GDBusProxy      *client_proxy = NULL;
@@ -58,8 +57,6 @@ static GDBusProxy      *client_proxy = NULL;
 
 #define SM_CLIENT_DBUS_INTERFACE "org.gnome.SessionManager.ClientPrivate"
 
-static void registry_session_init (const char *previous_client_id, const char *exe);
-
 static void
 on_session_over (GDBusProxy *proxy,
                  gchar      *sender_name,
@@ -87,12 +84,6 @@ session_manager_connect (void)
         return (sm_proxy != NULL);
 }
 
-static void
-stop_cb (gpointer data)
-{
-        g_main_loop_quit (mainloop);
-}
-
 static gboolean
 end_session_response (gboolean is_okay, const gchar *reason)
 {