summaryrefslogtreecommitdiff
path: root/panels/network
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2019-11-06 21:56:01 +1300
committerRobert Ancell <robert.ancell@canonical.com>2019-11-06 22:04:15 +1300
commit1c4cf953d65993309acb33453369ecfdbd813400 (patch)
treea6288a6f7e3d1e411c487e536b5ea7735c4b79bb /panels/network
parent7ea59681e9361a538b3987eebcaf91f8714d6c55 (diff)
downloadgnome-control-center-1c4cf953d65993309acb33453369ecfdbd813400.tar.gz
network: Remove unused function
Diffstat (limited to 'panels/network')
-rw-r--r--panels/network/connection-editor/vpn-helpers.c21
-rw-r--r--panels/network/connection-editor/vpn-helpers.h2
2 files changed, 0 insertions, 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_ */