bond: drop _get_option_or_default() and use _get_option_normalized()
Currently nm_setting_bond_get_option_normalized() and nm_setting_bond_get_option_or_default() are identical functions. As the first one is exposed as public API and has a better name, let's drop the second one.
This commit is contained in:
@@ -362,15 +362,6 @@ _bond_get_option_normalized(NMSettingBond *self, const char *option, gboolean ge
|
||||
return _bond_get_option_or_default(self, option);
|
||||
}
|
||||
|
||||
const char *
|
||||
nm_setting_bond_get_option_or_default(NMSettingBond *self, const char *option)
|
||||
{
|
||||
g_return_val_if_fail(NM_IS_SETTING_BOND(self), NULL);
|
||||
g_return_val_if_fail(option, NULL);
|
||||
|
||||
return _bond_get_option_normalized(self, option, FALSE);
|
||||
}
|
||||
|
||||
static int
|
||||
_atoi(const char *value)
|
||||
{
|
||||
|
Reference in New Issue
Block a user