[gnome-control-center] network: Remove unused virtual method



commit a1439b32b10589cb2221161105def9ba14c2645c
Author: Robert Ancell <robert ancell canonical com>
Date:   Fri Oct 18 15:49:38 2019 +1300

    network: Remove unused virtual method

 panels/network/net-object.c | 8 --------
 panels/network/net-object.h | 2 --
 panels/network/net-vpn.c    | 9 ---------
 3 files changed, 19 deletions(-)
---
diff --git a/panels/network/net-object.c b/panels/network/net-object.c
index ff3a371dc..137e600f0 100644
--- a/panels/network/net-object.c
+++ b/panels/network/net-object.c
@@ -162,14 +162,6 @@ net_object_add_to_stack (NetObject    *self,
         return NULL;
 }
 
-void
-net_object_delete (NetObject *self)
-{
-        NetObjectClass *klass = NET_OBJECT_GET_CLASS (self);
-        if (klass->delete != NULL)
-                klass->delete (self);
-}
-
 void
 net_object_refresh (NetObject *self)
 {
diff --git a/panels/network/net-object.h b/panels/network/net-object.h
index 4434326b9..af8f3eaa0 100644
--- a/panels/network/net-object.h
+++ b/panels/network/net-object.h
@@ -41,7 +41,6 @@ struct _NetObjectClass
         GtkWidget               *(*add_to_stack)       (NetObject       *object,
                                                         GtkStack        *stack,
                                                         GtkSizeGroup    *heading_size_group);
-        void                     (*delete)              (NetObject       *object);
         void                     (*refresh)             (NetObject       *object);
 };
 
@@ -56,7 +55,6 @@ GCancellable    *net_object_get_cancellable             (NetObject      *object)
 CcNetworkPanel  *net_object_get_panel                   (NetObject      *object);
 void             net_object_emit_changed                (NetObject      *object);
 void             net_object_emit_removed                (NetObject      *object);
-void             net_object_delete                      (NetObject      *object);
 void             net_object_refresh                     (NetObject      *object);
 GtkWidget       *net_object_add_to_stack                (NetObject      *object,
                                                          GtkStack       *stack,
diff --git a/panels/network/net-vpn.c b/panels/network/net-vpn.c
index 14cda792b..6717d49f3 100644
--- a/panels/network/net-vpn.c
+++ b/panels/network/net-vpn.c
@@ -122,14 +122,6 @@ net_vpn_set_connection (NetVpn *self, NMConnection *connection)
         self->service_type = net_vpn_connection_to_type (self->connection);
 }
 
-static void
-vpn_proxy_delete (NetObject *object)
-{
-        NetVpn *self = NET_VPN (object);
-        nm_remote_connection_delete_async (NM_REMOTE_CONNECTION (self->connection),
-                                           NULL, NULL, self);
-}
-
 static GtkWidget *
 vpn_proxy_add_to_stack (NetObject    *object,
                         GtkStack     *stack,
@@ -375,7 +367,6 @@ net_vpn_class_init (NetVpnClass *klass)
         object_class->constructed = net_vpn_constructed;
         object_class->finalize = net_vpn_finalize;
         parent_class->add_to_stack = vpn_proxy_add_to_stack;
-        parent_class->delete = vpn_proxy_delete;
         parent_class->refresh = vpn_proxy_refresh;
 
         pspec = g_param_spec_object ("connection", NULL, NULL,


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