[gnome-control-center] network: Remove unused hotspot_compatible property



commit 0478abe46cca7c6a4c8bd78a56bd02bdc643d07f
Author: Robert Ancell <robert ancell canonical com>
Date:   Thu Nov 7 13:39:21 2019 +1300

    network: Remove unused hotspot_compatible property

 .../network/wireless-security/wireless-security.c  | 22 ----------------------
 .../network/wireless-security/wireless-security.h  |  5 -----
 panels/network/wireless-security/ws-dynamic-wep.c  |  1 -
 panels/network/wireless-security/ws-leap.c         |  1 -
 panels/network/wireless-security/ws-wpa-eap.c      |  1 -
 5 files changed, 30 deletions(-)
---
diff --git a/panels/network/wireless-security/wireless-security.c 
b/panels/network/wireless-security/wireless-security.c
index 6909283a2..d67f3d760 100644
--- a/panels/network/wireless-security/wireless-security.c
+++ b/panels/network/wireless-security/wireless-security.c
@@ -35,7 +35,6 @@ struct _WirelessSecurityPrivate {
        WSChangedFunc changed_notify;
        gpointer changed_notify_data;
        gboolean adhoc_compatible;
-       gboolean hotspot_compatible;
 
        char *username, *password;
        gboolean always_ask, show_password;
@@ -211,7 +210,6 @@ wireless_security_init (gsize obj_size,
 
        priv->destroy = destroy;
        priv->adhoc_compatible = TRUE;
-       priv->hotspot_compatible = TRUE;
 
        return g_steal_pointer (&self);
 }
@@ -236,26 +234,6 @@ wireless_security_adhoc_compatible (WirelessSecurity *self)
        return priv->adhoc_compatible;
 }
 
-void
-wireless_security_set_hotspot_compatible (WirelessSecurity *self, gboolean hotspot_compatible)
-{
-       WirelessSecurityPrivate *priv = self->priv;
-
-       g_return_if_fail (self != NULL);
-
-       priv->hotspot_compatible = hotspot_compatible;
-}
-
-gboolean
-wireless_security_hotspot_compatible (WirelessSecurity *self)
-{
-       WirelessSecurityPrivate *priv = self->priv;
-
-       g_return_val_if_fail (self != NULL, FALSE);
-
-       return priv->hotspot_compatible;
-}
-
 const gchar *
 wireless_security_get_username (WirelessSecurity *self)
 {
diff --git a/panels/network/wireless-security/wireless-security.h 
b/panels/network/wireless-security/wireless-security.h
index ea2d56ba4..3c581e07f 100644
--- a/panels/network/wireless-security/wireless-security.h
+++ b/panels/network/wireless-security/wireless-security.h
@@ -65,11 +65,6 @@ void wireless_security_set_adhoc_compatible (WirelessSecurity *sec,
 
 gboolean wireless_security_adhoc_compatible (WirelessSecurity *sec);
 
-void wireless_security_set_hotspot_compatible (WirelessSecurity *sec,
-                                               gboolean hotspot_compatible);
-
-gboolean wireless_security_hotspot_compatible (WirelessSecurity *sec);
-
 const gchar *wireless_security_get_username (WirelessSecurity *sec);
 
 const gchar *wireless_security_get_password (WirelessSecurity *sec);
diff --git a/panels/network/wireless-security/ws-dynamic-wep.c 
b/panels/network/wireless-security/ws-dynamic-wep.c
index 739b29591..cba45c2c2 100644
--- a/panels/network/wireless-security/ws-dynamic-wep.c
+++ b/panels/network/wireless-security/ws-dynamic-wep.c
@@ -123,7 +123,6 @@ ws_dynamic_wep_new (NMConnection *connection,
        self->method_box = GTK_BOX (gtk_builder_get_object (parent->builder, "method_box"));
 
        wireless_security_set_adhoc_compatible (parent, FALSE);
-       wireless_security_set_hotspot_compatible (parent, FALSE);
 
        ws_802_1x_auth_combo_init (parent,
                                   self->auth_combo,
diff --git a/panels/network/wireless-security/ws-leap.c b/panels/network/wireless-security/ws-leap.c
index 0e5ef7c72..6e555f9c2 100644
--- a/panels/network/wireless-security/ws-leap.c
+++ b/panels/network/wireless-security/ws-leap.c
@@ -175,7 +175,6 @@ ws_leap_new (NMConnection *connection, gboolean secrets_only)
        }
 
        wireless_security_set_adhoc_compatible (parent, FALSE);
-       wireless_security_set_hotspot_compatible (parent, FALSE);
        self = (WirelessSecurityLEAP *) parent;
        self->editing_connection = secrets_only ? FALSE : TRUE;
        self->password_flags_name = NM_SETTING_WIRELESS_SECURITY_LEAP_PASSWORD;
diff --git a/panels/network/wireless-security/ws-wpa-eap.c b/panels/network/wireless-security/ws-wpa-eap.c
index 489295bba..9eebee617 100644
--- a/panels/network/wireless-security/ws-wpa-eap.c
+++ b/panels/network/wireless-security/ws-wpa-eap.c
@@ -124,7 +124,6 @@ ws_wpa_eap_new (NMConnection *connection,
        self->method_box = GTK_BOX (gtk_builder_get_object (parent->builder, "method_box"));
 
        wireless_security_set_adhoc_compatible (parent, FALSE);
-       wireless_security_set_hotspot_compatible (parent, FALSE);
 
        ws_802_1x_auth_combo_init (parent,
                                   self->auth_combo,


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