mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-08 08:58:07 +02:00
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.
This commit is contained in:
parent
c2426adb4b
commit
34951c91ff
2 changed files with 0 additions and 25 deletions
|
|
@ -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));
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue