libnm: drop some unnecessary direct_string_allow_empty

"nm_setting_hsr_get_port1" is new API and verify() already enforces that
the strings are not empty. The flag is redundant.

Also drop it from a few other places, where it's redundant.
This commit is contained in:
Thomas Haller 2024-01-08 12:54:43 +01:00
parent 8062d04cd4
commit f766ec0a16
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728
2 changed files with 4 additions and 8 deletions

View file

@ -2021,8 +2021,7 @@ nm_setting_connection_class_init(NMSettingConnectionClass *klass)
.from_dbus_is_full = TRUE,
.from_dbus_direct_allow_transform = TRUE),
NMSettingConnectionPrivate,
id,
.direct_string_allow_empty = TRUE);
id);
/**
* NMSettingConnection:uuid:
@ -2065,8 +2064,7 @@ nm_setting_connection_class_init(NMSettingConnectionClass *klass)
PROP_UUID,
NM_SETTING_PARAM_FUZZY_IGNORE,
NMSettingConnectionPrivate,
uuid,
.direct_string_allow_empty = TRUE);
uuid);
/**
* NMSettingConnection:stable-id:

View file

@ -209,8 +209,7 @@ nm_setting_hsr_class_init(NMSettingHsrClass *klass)
PROP_PORT1,
NM_SETTING_PARAM_INFERRABLE,
NMSettingHsr,
_priv.port1,
.direct_string_allow_empty = TRUE);
_priv.port1);
/**
* NMSettingHsr:port2:
@ -225,8 +224,7 @@ nm_setting_hsr_class_init(NMSettingHsrClass *klass)
PROP_PORT2,
NM_SETTING_PARAM_INFERRABLE,
NMSettingHsr,
_priv.port2,
.direct_string_allow_empty = TRUE);
_priv.port2);
/**
* NMSettingHsr:multicast-spec: