[network-manager-applet/lr/compat-drop: 2/5] applet-dialogs: drop a NM-1.12 compat hack



commit 9cd2097d807882fac570e741c9c6bf528157ee1d
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Fri Nov 29 09:00:07 2019 +0100

    applet-dialogs: drop a NM-1.12 compat hack

 src/applet-dialogs.c | 25 -------------------------
 1 file changed, 25 deletions(-)
---
diff --git a/src/applet-dialogs.c b/src/applet-dialogs.c
index 88d32a64..e432cf29 100644
--- a/src/applet-dialogs.c
+++ b/src/applet-dialogs.c
@@ -937,31 +937,6 @@ info_dialog_add_page_for_vpn (GtkNotebook *notebook,
        gtk_widget_show_all (GTK_WIDGET (grid));
 }
 
-#ifndef NM_REMOTE_CONNECTION_FLAGS
-/*
- * NetworkManager < 1.12 compatibility.
- * If you look outside and see flying cars, remove this.
- */
-typedef enum {
-        NM_SETTINGS_CONNECTION_FLAG_NM_GENERATED = 2,
-} NMSettingsConnectionFlags;
-
-static NMSettingsConnectionFlags
-nm_remote_connection_get_flags (NMRemoteConnection *connection)
-{
-       NMSettingsConnectionFlags flags;
-
-       if (!g_object_class_find_property (G_OBJECT_GET_CLASS (connection), "flags"))
-               return 0;
-
-       g_object_get (connection, "flags", &flags, NULL);
-       return flags;
-}
-#else
-#define nm_remote_connection_get_flags(conn) \
-       NM_LIBNM_COMPAT_UNDEPRECATE (nm_remote_connection_get_flags (conn))
-#endif
-
 static int
 _compare_active_connections (gconstpointer a, gconstpointer b)
 {


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