mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-20 23:30:41 +02:00
keyfile: drop unused handling of non-existing "address-lables"
The key_writers array is searched by matching the @key during write_setting_value(). Note how write_setting_value() is called by nm_connection_for_each_setting_value(), thus, @key is the name of a GObject property for NMSettingIP4Config. But NMSettingIP4Config has no property names "address-labels". Hence, this was unused since introducing libnm-core (which never had this internal property).
This commit is contained in:
parent
1ed8bdd3b1
commit
22578e5fd3
1 changed files with 0 additions and 12 deletions
|
|
@ -221,15 +221,6 @@ addr_writer (KeyfileWriterInfo *info,
|
|||
write_ip_values (info->keyfile, setting_name, array, gateway, FALSE);
|
||||
}
|
||||
|
||||
static void
|
||||
ip4_addr_label_writer (KeyfileWriterInfo *info,
|
||||
NMSetting *setting,
|
||||
const char *key,
|
||||
const GValue *value)
|
||||
{
|
||||
/* skip */
|
||||
}
|
||||
|
||||
static void
|
||||
gateway_writer (KeyfileWriterInfo *info,
|
||||
NMSetting *setting,
|
||||
|
|
@ -596,9 +587,6 @@ static KeyWriter key_writers[] = {
|
|||
{ NM_SETTING_IP4_CONFIG_SETTING_NAME,
|
||||
NM_SETTING_IP_CONFIG_ADDRESSES,
|
||||
addr_writer },
|
||||
{ NM_SETTING_IP4_CONFIG_SETTING_NAME,
|
||||
"address-labels",
|
||||
ip4_addr_label_writer },
|
||||
{ NM_SETTING_IP6_CONFIG_SETTING_NAME,
|
||||
NM_SETTING_IP_CONFIG_ADDRESSES,
|
||||
addr_writer },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue