[gnome-settings-daemon] sharing: Remove useless set_properties()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] sharing: Remove useless set_properties()
- Date: Wed, 25 Jun 2014 14:21:31 +0000 (UTC)
commit ea9c74fd8baed4277df04fb8a194647ce11308f7
Author: Bastien Nocera <hadess hadess net>
Date: Wed Jun 25 16:20:12 2014 +0200
sharing: Remove useless set_properties()
Added in commit 5cfb8fd711bb5b5b93f519cf2c1248d251861f5a but
of no use, as those values are already set in _init()
plugins/sharing/gsd-sharing-manager.c | 11 -----------
1 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/plugins/sharing/gsd-sharing-manager.c b/plugins/sharing/gsd-sharing-manager.c
index bbd4053..a727eed 100644
--- a/plugins/sharing/gsd-sharing-manager.c
+++ b/plugins/sharing/gsd-sharing-manager.c
@@ -662,15 +662,6 @@ remote_settings_ready_cb (GObject *source_object,
manager->priv->remote_settings = remote_settings;
}
-#else
-static void
-set_properties (GsdSharingManager *manager)
-{
- manager->priv->current_network = g_strdup ("");
- manager->priv->current_network_name = g_strdup ("");
- manager->priv->carrier_type = g_strdup ("");
- manager->priv->sharing_status = GSD_SHARING_STATUS_OFFLINE;
-}
#endif /* HAVE_NETWORK_MANAGER */
#define RYGEL_BUS_NAME "org.gnome.Rygel1"
@@ -718,8 +709,6 @@ gsd_sharing_manager_start (GsdSharingManager *manager,
#ifdef HAVE_NETWORK_MANAGER
nm_client_new_async (manager->priv->cancellable, nm_client_ready, manager);
nm_remote_settings_new_async (NULL, manager->priv->cancellable, remote_settings_ready_cb, manager);
-#else
- set_properties (manager);
#endif /* HAVE_NETWORK_MANAGER */
/* Start process of owning a D-Bus name */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]