summaryrefslogtreecommitdiff
path: root/src/nm-config.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-11-25 14:39:59 +0100
committerThomas Haller <thaller@redhat.com>2016-11-25 18:02:38 +0100
commitff4cb2a1fcc711e0f31e7ab8f16dbebbf3616e36 (patch)
tree73a5327ba5e8ffc561ec47b08e7b224a063c4d26 /src/nm-config.c
parentafcfa7be2bfdc41be9c0c12fe28432dc3f605bee (diff)
downloadNetworkManager-ff4cb2a1fcc711e0f31e7ab8f16dbebbf3616e36.tar.gz
config: drop nm_config_get_auth_polkit() and access value directly
Diffstat (limited to 'src/nm-config.c')
-rw-r--r--src/nm-config.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/nm-config.c b/src/nm-config.c
index ebc934092f..4e63b2e9e0 100644
--- a/src/nm-config.c
+++ b/src/nm-config.c
@@ -92,7 +92,6 @@ typedef struct {
char *intern_config_file;
gboolean monitor_connection_files;
- gboolean auth_polkit;
char *dhcp_client;
char *log_level;
@@ -267,14 +266,6 @@ nm_config_get_monitor_connection_files (NMConfig *config)
return NM_CONFIG_GET_PRIVATE (config)->monitor_connection_files;
}
-gboolean
-nm_config_get_auth_polkit (NMConfig *config)
-{
- g_return_val_if_fail (NM_IS_CONFIG (config), NM_CONFIG_DEFAULT_MAIN_AUTH_POLKIT_BOOL);
-
- return NM_CONFIG_GET_PRIVATE (config)->auth_polkit;
-}
-
const char *
nm_config_get_dhcp_client (NMConfig *config)
{
@@ -2331,8 +2322,6 @@ init_sync (GInitable *initable, GCancellable *cancellable, GError **error)
priv->monitor_connection_files = nm_config_keyfile_get_boolean (keyfile, NM_CONFIG_KEYFILE_GROUP_MAIN, "monitor-connection-files", FALSE);
- priv->auth_polkit = nm_config_keyfile_get_boolean (keyfile, NM_CONFIG_KEYFILE_GROUP_MAIN, "auth-polkit", NM_CONFIG_DEFAULT_MAIN_AUTH_POLKIT_BOOL);
-
priv->dhcp_client = nm_strstrip (g_key_file_get_string (keyfile, NM_CONFIG_KEYFILE_GROUP_MAIN, "dhcp", NULL));
priv->log_level = nm_strstrip (g_key_file_get_string (keyfile, NM_CONFIG_KEYFILE_GROUP_LOGGING, "level", NULL));
@@ -2370,9 +2359,6 @@ init_sync (GInitable *initable, GCancellable *cancellable, GError **error)
static void
nm_config_init (NMConfig *config)
{
- NMConfigPrivate *priv = NM_CONFIG_GET_PRIVATE (config);
-
- priv->auth_polkit = NM_CONFIG_DEFAULT_MAIN_AUTH_POLKIT_BOOL;
}
NMConfig *