[gnome-control-center] network: Remove unused function
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: Remove unused function
- Date: Wed, 6 Nov 2019 12:38:44 +0000 (UTC)
commit 1c4cf953d65993309acb33453369ecfdbd813400
Author: Robert Ancell <robert ancell canonical com>
Date: Wed Nov 6 21:56:01 2019 +1300
network: Remove unused function
panels/network/connection-editor/vpn-helpers.c | 21 ---------------------
panels/network/connection-editor/vpn-helpers.h | 2 --
2 files changed, 23 deletions(-)
---
diff --git a/panels/network/connection-editor/vpn-helpers.c b/panels/network/connection-editor/vpn-helpers.c
index 6ed8791bb..8ef486bb9 100644
--- a/panels/network/connection-editor/vpn-helpers.c
+++ b/panels/network/connection-editor/vpn-helpers.c
@@ -316,24 +316,3 @@ vpn_export (NMConnection *connection)
gtk_widget_show_all (dialog);
gtk_window_present (GTK_WINDOW (dialog));
}
-
-gboolean
-vpn_supports_ipv6 (NMConnection *connection)
-{
- NMSettingVpn *s_vpn;
- const char *service_type;
- NMVpnEditorPlugin *plugin;
- guint32 capabilities;
-
- s_vpn = nm_connection_get_setting_vpn (connection);
- g_return_val_if_fail (s_vpn != NULL, FALSE);
-
- service_type = nm_setting_vpn_get_service_type (s_vpn);
- g_return_val_if_fail (service_type != NULL, FALSE);
-
- plugin = vpn_get_plugin_by_service (service_type);
- g_return_val_if_fail (plugin != NULL, FALSE);
-
- capabilities = nm_vpn_editor_plugin_get_capabilities (plugin);
- return (capabilities & NM_VPN_EDITOR_PLUGIN_CAPABILITY_IPV6) != 0;
-}
diff --git a/panels/network/connection-editor/vpn-helpers.h b/panels/network/connection-editor/vpn-helpers.h
index 6bd102c5d..578f68ce6 100644
--- a/panels/network/connection-editor/vpn-helpers.h
+++ b/panels/network/connection-editor/vpn-helpers.h
@@ -36,6 +36,4 @@ void vpn_import (GtkWindow *parent, VpnImportCallback callback, gpointer user_da
void vpn_export (NMConnection *connection);
-gboolean vpn_supports_ipv6 (NMConnection *connection);
-
#endif /* _VPN_HELPERS_H_ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]