From: Bastien Nocera Date: Wed, 13 Jun 2012 16:31:26 +0000 (+0100) Subject: Remove unused functions X-Git-Tag: AT_SPI2_ATK_2_12_0~124 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git;a=commitdiff_plain;h=5c96b850199115b3e8147bce6ca665541315db14;hp=6cb355e0191bf9a8524c1d422f8b465d15f22a00 Remove unused functions https://bugzilla.gnome.org/show_bug.cgi?id=678040 --- diff --git a/atk-adaptor/bridge.c b/atk-adaptor/bridge.c index 97a5f1d..7544d41 100644 --- a/atk-adaptor/bridge.c +++ b/atk-adaptor/bridge.c @@ -60,56 +60,6 @@ SpiBridge *spi_global_app_data = NULL; /*---------------------------------------------------------------------------*/ -/* - * Returns a 'canonicalized' value for DISPLAY, - * with the screen number stripped off if present. - * - */ -static const gchar * -spi_display_name (void) -{ - static const char *canonical_display_name = NULL; - if (!canonical_display_name) - { - const gchar *display_env = g_getenv ("AT_SPI_DISPLAY"); - if (!display_env) - { - display_env = g_getenv ("DISPLAY"); - if (!display_env || !display_env[0]) - canonical_display_name = ":0"; - else - { - gchar *display_p, *screen_p; - canonical_display_name = g_strdup (display_env); - display_p = strrchr (canonical_display_name, ':'); - screen_p = strrchr (canonical_display_name, '.'); - if (screen_p && display_p && (screen_p > display_p)) - { - *screen_p = '\0'; - } - } - } - else - { - canonical_display_name = display_env; - } - } - return canonical_display_name; -} - -/*---------------------------------------------------------------------------*/ - -static void -set_reply (DBusPendingCall *pending, void *user_data) -{ - void **replyptr = (void **)user_data; - - *replyptr = dbus_pending_call_steal_reply (pending); - dbus_pending_call_unref (pending); -} - -/*---------------------------------------------------------------------------*/ - static void add_event (const char *bus_name, const char *event) {