From 34951c91ffd3d11537c03909723dcb03bbcc6221 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 17 Oct 2013 00:24:45 +0200 Subject: lib: Remove unneeded up_client_get_properties_sync() It doesn't do anything, and we already broke the ABI by removing some functions, so remove this as well. --- libupower-glib/up-client.c | 22 ---------------------- libupower-glib/up-client.h | 3 --- 2 files changed, 25 deletions(-) (limited to 'libupower-glib') diff --git a/libupower-glib/up-client.c b/libupower-glib/up-client.c index cfc6ce8..7243c8f 100644 --- a/libupower-glib/up-client.c +++ b/libupower-glib/up-client.c @@ -121,26 +121,6 @@ up_client_get_devices (UpClient *client) return g_ptr_array_ref (client->priv->array); } -/** - * up_client_get_properties_sync: - * @client: a #UpClient instance. - * @cancellable: a #GCancellable or %NULL - * @error: a #GError, or %NULL. - * - * Get all the properties from UPower daemon. - * - * Return value: %TRUE for success, else %FALSE. - * - * Since: 0.9.0 - **/ -gboolean -up_client_get_properties_sync (UpClient *client, GCancellable *cancellable, GError **error) -{ - /* This is not needed now that we used GDBus */ - g_return_val_if_fail (UP_IS_CLIENT (client), FALSE); - return TRUE; -} - /** * up_client_get_daemon_version: * @client: a #UpClient instance. @@ -340,8 +320,6 @@ up_client_get_property (GObject *object, UpClient *client; client = UP_CLIENT (object); - up_client_get_properties_sync (client, NULL, NULL); - switch (prop_id) { case PROP_DAEMON_VERSION: g_value_set_string (value, up_client_glue_get_daemon_version (client->priv->proxy)); diff --git a/libupower-glib/up-client.h b/libupower-glib/up-client.h index b8c927f..3c389d0 100644 --- a/libupower-glib/up-client.h +++ b/libupower-glib/up-client.h @@ -77,9 +77,6 @@ GType up_client_get_type (void); UpClient *up_client_new (void); /* sync versions */ -gboolean up_client_get_properties_sync (UpClient *client, - GCancellable *cancellable, - GError **error); gboolean up_client_enumerate_devices_sync (UpClient *client, GCancellable *cancellable, GError **error); -- cgit v1.2.1