[gnome-control-center] network: Make a method private



commit 71785b9109bcbb92ea01b273dfd300af93349d13
Author: Robert Ancell <robert ancell canonical com>
Date:   Fri Nov 8 09:47:39 2019 +1300

    network: Make a method private

 panels/network/wireless-security/eap-method.c | 14 ++------------
 panels/network/wireless-security/eap-method.h |  2 --
 2 files changed, 2 insertions(+), 14 deletions(-)
---
diff --git a/panels/network/wireless-security/eap-method.c b/panels/network/wireless-security/eap-method.c
index 2030e954a..34a2a0cb4 100644
--- a/panels/network/wireless-security/eap-method.c
+++ b/panels/network/wireless-security/eap-method.c
@@ -91,16 +91,6 @@ eap_method_fill_connection (EAPMethod *self,
        return (*(self->fill_connection)) (self, connection, flags);
 }
 
-void
-eap_method_update_secrets (EAPMethod *self, NMConnection *connection)
-{
-       g_return_if_fail (self != NULL);
-       g_return_if_fail (connection != NULL);
-
-       if (self->update_secrets)
-               self->update_secrets (self, connection);
-}
-
 void
 eap_method_phase2_update_secrets_helper (EAPMethod *self,
                                          NMConnection *connection,
@@ -121,8 +111,8 @@ eap_method_phase2_update_secrets_helper (EAPMethod *self,
                        g_autoptr(EAPMethod) eap = NULL;
 
                        gtk_tree_model_get (model, &iter, column, &eap, -1);
-                       if (eap)
-                               eap_method_update_secrets (eap, connection);
+                       if (eap && eap->update_secrets)
+                               eap->update_secrets (self, connection);
                } while (gtk_tree_model_iter_next (model, &iter));
        }
 }
diff --git a/panels/network/wireless-security/eap-method.h b/panels/network/wireless-security/eap-method.h
index 695b0fdc5..dc3c35b8d 100644
--- a/panels/network/wireless-security/eap-method.h
+++ b/panels/network/wireless-security/eap-method.h
@@ -65,8 +65,6 @@ void eap_method_fill_connection (EAPMethod *method,
                                  NMConnection *connection,
                                  NMSettingSecretFlags flags);
 
-void eap_method_update_secrets (EAPMethod *method, NMConnection *connection);
-
 EAPMethod *eap_method_ref (EAPMethod *method);
 
 void eap_method_unref (EAPMethod *method);


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