From 1001dca6983e032042c609223934558cd551190c Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 7 Sep 2020 23:36:00 +0200 Subject: device: remove unused dhcp4.root_path field --- src/devices/nm-device.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 832116bd05..b7a9df1103 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -537,7 +537,6 @@ typedef struct _NMDevicePrivate { /* DHCPv4 tracking */ struct { char * pac_url; - char * root_path; } dhcp4; struct { @@ -8310,7 +8309,6 @@ dhcp4_cleanup (NMDevice *self, CleanupType cleanup_type, gboolean release) nm_clear_g_source (&priv->dhcp_data_4.grace_id); priv->dhcp_data_4.grace_pending = FALSE; nm_clear_g_free (&priv->dhcp4.pac_url); - nm_clear_g_free (&priv->dhcp4.root_path); if (priv->dhcp_data_4.client) { /* Stop any ongoing DHCP transaction on this device */ @@ -8755,9 +8753,6 @@ dhcp4_state_changed (NMDhcpClient *client, priv->dhcp4.pac_url = g_strdup (g_hash_table_lookup (options, "wpad")); nm_device_set_proxy_config (self, priv->dhcp4.pac_url); - g_free (priv->dhcp4.root_path); - priv->dhcp4.root_path = g_strdup (g_hash_table_lookup (options, "root_path")); - nm_dhcp_config_set_options (priv->dhcp_data_4.config, options); _notify (self, PROP_DHCP4_CONFIG); -- cgit v1.2.1