mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-09 21:40:22 +01:00
cli: remove bluetooth completion code
The 'bt-type' property alias accepts values provided by
gen_func_bt_type(); instead the 'bluetooth.type' property can only be
set to [dun, panu, nap] and therefore it doesn't need special
handling.
(cherry picked from commit 78b9448b69)
This commit is contained in:
parent
0f03773b75
commit
a9728a6112
1 changed files with 2 additions and 8 deletions
|
|
@ -4561,14 +4561,8 @@ complete_property (const char *setting_name, const char *property, const char *p
|
|||
const NMMetaPropertyInfo *property_info;
|
||||
|
||||
property_info = nm_meta_property_info_find_by_name (setting_name, property);
|
||||
if (property_info) {
|
||||
if (complete_option ((const NMMetaAbstractInfo *) property_info, prefix, connection))
|
||||
return;
|
||||
}
|
||||
|
||||
if ( strcmp (setting_name, NM_SETTING_BLUETOOTH_SETTING_NAME) == 0
|
||||
&& strcmp (property, NM_SETTING_BLUETOOTH_TYPE) == 0)
|
||||
run_rl_generator (gen_func_bt_type, prefix);
|
||||
if (property_info)
|
||||
complete_option ((const NMMetaAbstractInfo *) property_info, prefix, connection);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue