[gnome-control-center/wip/networking2: 86/101] network: Remove an unused function



commit 9b7f29ad297a7e8ea4f094f04a87426181648c3c
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jan 6 22:36:56 2013 -0500

    network: Remove an unused function

 panels/network/net-device-wifi.c |   23 -----------------------
 1 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/panels/network/net-device-wifi.c b/panels/network/net-device-wifi.c
index b053e7d..af65099 100644
--- a/panels/network/net-device-wifi.c
+++ b/panels/network/net-device-wifi.c
@@ -266,29 +266,6 @@ wireless_enabled_toggled (NMClient       *client,
         device_wifi->priv->updating_device = FALSE;
 }
 
-#if 0
-static void
-update_off_switch_from_device_state (GtkSwitch *sw,
-                                     NMDeviceState state,
-                                     NetDeviceWifi *device_wifi)
-{
-        device_wifi->priv->updating_device = TRUE;
-        switch (state) {
-                case NM_DEVICE_STATE_UNMANAGED:
-                case NM_DEVICE_STATE_UNAVAILABLE:
-                case NM_DEVICE_STATE_DISCONNECTED:
-                case NM_DEVICE_STATE_DEACTIVATING:
-                case NM_DEVICE_STATE_FAILED:
-                        gtk_switch_set_active (sw, FALSE);
-                        break;
-                default:
-                        gtk_switch_set_active (sw, TRUE);
-                        break;
-        }
-        device_wifi->priv->updating_device = FALSE;
-}
-#endif
-
 static NMConnection *
 find_connection_for_device (NetDeviceWifi *device_wifi,
                             NMDevice       *device)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]