[network-manager-applet] editor: remove dead VPN save secrets code



commit 3ea7ea3bdeaa64b211cb370f2dfd8088ebee3fd0
Author: Dan Williams <dcbw redhat com>
Date:   Wed Jul 13 12:39:16 2011 -0500

    editor: remove dead VPN save secrets code
    
    Secrets saving is handled by the secret agent now, not by the VPN
    plugins themselves.

 src/connection-editor/page-vpn.c |   19 -------------------
 src/connection-editor/page-vpn.h |    2 --
 2 files changed, 0 insertions(+), 21 deletions(-)
---
diff --git a/src/connection-editor/page-vpn.c b/src/connection-editor/page-vpn.c
index 6c3bca0..0096def 100644
--- a/src/connection-editor/page-vpn.c
+++ b/src/connection-editor/page-vpn.c
@@ -133,25 +133,6 @@ ce_page_vpn_new (NMConnection *connection,
 	return CE_PAGE (self);
 }
 
-gboolean
-ce_page_vpn_save_secrets (CEPage *page, NMConnection *connection)
-{
-	CEPageVpn *self = CE_PAGE_VPN (page);
-	CEPageVpnPrivate *priv = CE_PAGE_VPN_GET_PRIVATE (self);
-	GError *error = NULL;
-	gboolean success = FALSE;
-
-	success = nm_vpn_plugin_ui_widget_interface_save_secrets (priv->ui, connection, &error);
-	if (!success) {
-		g_warning ("%s: couldn't save VPN secrets: (%d) %s", __func__,
-		           error ? error->code : -1, error ? error->message : "unknown");
-		if (error)
-			g_error_free (error);
-	}
-
-	return success;
-}
-
 static gboolean
 validate (CEPage *page, NMConnection *connection, GError **error)
 {
diff --git a/src/connection-editor/page-vpn.h b/src/connection-editor/page-vpn.h
index c198125..2173541 100644
--- a/src/connection-editor/page-vpn.h
+++ b/src/connection-editor/page-vpn.h
@@ -52,8 +52,6 @@ CEPage *ce_page_vpn_new (NMConnection *connection,
                          const char **out_secrets_setting_name,
                          GError **error);
 
-gboolean ce_page_vpn_save_secrets (CEPage *page, NMConnection *connection);
-
 void vpn_connection_new (GtkWindow *parent,
                          PageNewConnectionResultFunc result_func,
                          PageGetConnectionsFunc get_connections_func,



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