[glib] Revert "Add private _g_bus_get_singleton_if_exists() function"
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Revert "Add private _g_bus_get_singleton_if_exists() function"
- Date: Wed, 18 Apr 2012 17:49:26 +0000 (UTC)
commit 26d4da2352bea3024a90b7fe0d1b1ed4c1b5e979
Author: David Zeuthen <davidz redhat com>
Date: Wed Apr 18 13:48:09 2012 -0400
Revert "Add private _g_bus_get_singleton_if_exists() function"
This reverts commit f8a8e9039889c090fb3323e195730b9e460396e4.
gio/gdbusconnection.c | 19 -------------------
gio/gdbusprivate.h | 3 ---
2 files changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/gio/gdbusconnection.c b/gio/gdbusconnection.c
index 6bd1d1d..8bf0dc3 100644
--- a/gio/gdbusconnection.c
+++ b/gio/gdbusconnection.c
@@ -6769,25 +6769,6 @@ get_uninitialized_connection (GBusType bus_type,
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:
* @bus_type: A #GBusType.
diff --git a/gio/gdbusprivate.h b/gio/gdbusprivate.h
index 1ac7754..7230a8d 100644
--- a/gio/gdbusprivate.h
+++ b/gio/gdbusprivate.h
@@ -143,9 +143,6 @@ void _g_dbus_object_proxy_add_interface (GDBusObjectProxy *proxy,
void _g_dbus_object_proxy_remove_interface (GDBusObjectProxy *proxy,
const gchar *interface_name);
-/* Implemented in gdbusconnection.c */
-GDBusConnection *_g_bus_get_singleton_if_exists (GBusType bus_type);
-
G_END_DECLS
#endif /* __G_DBUS_PRIVATE_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]