[gnome-control-center] network: Remove unused GObject property
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: Remove unused GObject property
- Date: Tue, 22 Oct 2019 20:18:43 +0000 (UTC)
commit 926063acb35d5a0da5221531246d6aeec1045cf8
Author: Robert Ancell <robert ancell canonical com>
Date: Fri Oct 18 15:31:49 2019 +1300
network: Remove unused GObject property
panels/network/cc-network-panel.c | 2 --
panels/network/cc-wifi-panel.c | 1 -
panels/network/net-device.c | 1 -
panels/network/net-object.c | 22 ----------------------
panels/network/net-object.h | 3 ---
panels/network/net-proxy.c | 1 -
6 files changed, 30 deletions(-)
---
diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c
index fca6b658a..2632d5efd 100644
--- a/panels/network/cc-network-panel.c
+++ b/panels/network/cc-network-panel.c
@@ -492,7 +492,6 @@ panel_add_device (CcNetworkPanel *self, NMDevice *device)
/* create device */
net_device = g_object_new (device_g_type,
"panel", self,
- "removable", FALSE,
"cancellable", self->cancellable,
"client", self->client,
"nm-device", device,
@@ -703,7 +702,6 @@ panel_add_vpn_device (CcNetworkPanel *self, NMConnection *connection)
/* add as a VPN object */
net_vpn = g_object_new (NET_TYPE_VPN,
"panel", self,
- "removable", TRUE,
"id", id,
"connection", connection,
"client", self->client,
diff --git a/panels/network/cc-wifi-panel.c b/panels/network/cc-wifi-panel.c
index 7f6ced7d3..86841f8a1 100644
--- a/panels/network/cc-wifi-panel.c
+++ b/panels/network/cc-wifi-panel.c
@@ -158,7 +158,6 @@ add_wifi_device (CcWifiPanel *self,
/* Create the NetDevice */
net_device = g_object_new (NET_TYPE_DEVICE_WIFI,
"panel", self,
- "removable", FALSE,
"cancellable", self->cancellable,
"client", self->client,
"nm-device", device,
diff --git a/panels/network/net-device.c b/panels/network/net-device.c
index 638058a45..bfa676b13 100644
--- a/panels/network/net-device.c
+++ b/panels/network/net-device.c
@@ -287,7 +287,6 @@ NetDevice *
net_device_new (void)
{
return g_object_new (NET_TYPE_DEVICE,
- "removable", FALSE,
NULL);
}
diff --git a/panels/network/net-object.c b/panels/network/net-object.c
index 77b24b92b..0e2e2fc79 100644
--- a/panels/network/net-object.c
+++ b/panels/network/net-object.c
@@ -30,7 +30,6 @@ typedef struct
{
gchar *id;
gchar *title;
- gboolean removable;
GCancellable *cancellable;
NMClient *client;
CcNetworkPanel *panel;
@@ -40,7 +39,6 @@ enum {
PROP_0,
PROP_ID,
PROP_TITLE,
- PROP_REMOVABLE,
PROP_CLIENT,
PROP_CANCELLABLE,
PROP_PANEL,
@@ -96,15 +94,6 @@ net_object_set_id (NetObject *self, const gchar *id)
g_object_notify (G_OBJECT (self), "id");
}
-gboolean
-net_object_get_removable (NetObject *self)
-{
- NetObjectPrivate *priv = net_object_get_instance_private (self);
-
- g_return_val_if_fail (NET_IS_OBJECT (self), FALSE);
- return priv->removable;
-}
-
const gchar *
net_object_get_title (NetObject *self)
{
@@ -216,9 +205,6 @@ net_object_get_property (GObject *object,
case PROP_TITLE:
g_value_set_string (value, priv->title);
break;
- case PROP_REMOVABLE:
- g_value_set_boolean (value, priv->removable);
- break;
case PROP_CLIENT:
g_value_set_pointer (value, priv->client);
break;
@@ -255,9 +241,6 @@ net_object_set_property (GObject *object,
g_free (priv->title);
priv->title = g_strdup (g_value_get_string (value));
break;
- case PROP_REMOVABLE:
- priv->removable = g_value_get_boolean (value);
- break;
case PROP_CLIENT:
priv->client = g_value_get_pointer (value);
if (priv->client)
@@ -316,11 +299,6 @@ net_object_class_init (NetObjectClass *klass)
G_PARAM_READWRITE | G_PARAM_CONSTRUCT);
g_object_class_install_property (object_class, PROP_TITLE, pspec);
- pspec = g_param_spec_boolean ("removable", NULL, NULL,
- TRUE,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT);
- g_object_class_install_property (object_class, PROP_REMOVABLE, pspec);
-
pspec = g_param_spec_pointer ("client", NULL, NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT);
g_object_class_install_property (object_class, PROP_CLIENT, pspec);
diff --git a/panels/network/net-object.h b/panels/network/net-object.h
index 900e44bf1..b6eb2d5f2 100644
--- a/panels/network/net-object.h
+++ b/panels/network/net-object.h
@@ -63,9 +63,6 @@ void net_object_edit (NetObject *object)
GtkWidget *net_object_add_to_stack (NetObject *object,
GtkStack *stack,
GtkSizeGroup *heading_size_group);
-gboolean net_object_get_removable (NetObject *object);
-void net_object_set_removable (NetObject *object,
- gboolean removable);
G_END_DECLS
diff --git a/panels/network/net-proxy.c b/panels/network/net-proxy.c
index cd3523fc9..a24cd1ba5 100644
--- a/panels/network/net-proxy.c
+++ b/panels/network/net-proxy.c
@@ -408,7 +408,6 @@ NetProxy *
net_proxy_new (void)
{
return g_object_new (NET_TYPE_PROXY,
- "removable", FALSE,
"id", "proxy",
NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]