Revert "Add private _g_bus_get_singleton_if_exists() function"

This reverts commit f8a8e90398.
This commit is contained in:
David Zeuthen 2012-04-18 13:48:09 -04:00
parent a6f83d73e5
commit 26d4da2352
2 changed files with 0 additions and 22 deletions

View File

@ -6769,25 +6769,6 @@ get_uninitialized_connection (GBusType bus_type,
return ret; return ret;
} }
/* Called in any user thread, without holding locks. */
GDBusConnection *
_g_bus_get_singleton_if_exists (GBusType bus_type)
{
GWeakRef *singleton;
GDBusConnection *ret = NULL;
G_LOCK (message_bus_lock);
singleton = message_bus_get_singleton (bus_type, NULL);
if (singleton == NULL)
goto out;
ret = g_weak_ref_get (singleton);
out:
G_UNLOCK (message_bus_lock);
return ret;
}
/** /**
* g_bus_get_sync: * g_bus_get_sync:
* @bus_type: A #GBusType. * @bus_type: A #GBusType.

View File

@ -143,9 +143,6 @@ void _g_dbus_object_proxy_add_interface (GDBusObjectProxy *proxy,
void _g_dbus_object_proxy_remove_interface (GDBusObjectProxy *proxy, void _g_dbus_object_proxy_remove_interface (GDBusObjectProxy *proxy,
const gchar *interface_name); const gchar *interface_name);
/* Implemented in gdbusconnection.c */
GDBusConnection *_g_bus_get_singleton_if_exists (GBusType bus_type);
G_END_DECLS G_END_DECLS
#endif /* __G_DBUS_PRIVATE_H__ */ #endif /* __G_DBUS_PRIVATE_H__ */