[gnome-control-center] network: Remove some unused code



commit e72194482e3eb718a42615fa9e6bd52025a15ad2
Author: Richard Hughes <richard hughsie com>
Date:   Mon Jul 16 17:35:56 2012 +0100

    network: Remove some unused code

 panels/network/cc-network-panel.c |   24 ------------------------
 1 files changed, 0 insertions(+), 24 deletions(-)
---
diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c
index 6ec51be..de29926 100644
--- a/panels/network/cc-network-panel.c
+++ b/panels/network/cc-network-panel.c
@@ -120,7 +120,6 @@ enum {
 
 static void     refresh_ui      (CcNetworkPanel *panel);
 static NetObject *find_in_model_by_id (CcNetworkPanel *panel, const gchar *id);
-static gboolean find_model_iter_by_object (GtkTreeModel *model, const NetObject *object, GtkTreeIter *iter);
 
 static void
 cc_network_panel_get_property (GObject    *object,
@@ -541,7 +540,6 @@ panel_add_device (CcNetworkPanel *panel, NMDevice *device)
 
         /* we don't support bluetooth devices yet -- no mockup */
         type = nm_device_get_device_type (device);
-
         if (type == NM_DEVICE_TYPE_BT)
                 goto out;
 
@@ -2186,28 +2184,6 @@ out:
         return object;
 }
 
-static gboolean
-find_model_iter_by_object (GtkTreeModel *model, const NetObject *object, GtkTreeIter *iter)
-{
-        gboolean valid;
-        NetObject *object_tmp;
-
-        /* find iter in model according to the passed object */
-        valid = gtk_tree_model_get_iter_first (model, iter);
-        while (valid) {
-                gtk_tree_model_get (model, iter,
-                                    PANEL_DEVICES_COLUMN_OBJECT, &object_tmp,
-                                    -1);
-                if (object_tmp != NULL)
-                        g_object_unref (object_tmp);
-                if (object_tmp == object)
-                        return TRUE;
-                valid = gtk_tree_model_iter_next (model, iter);
-        }
-
-        return FALSE;
-}
-
 static void
 panel_add_vpn_device (CcNetworkPanel *panel, NMConnection *connection)
 {



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