refactor(options): remove SOPT type enums (#26417)

Problem: SOPT type enums (`SOPT_NUM`, `SOPT_BOOL`, `SOPT_STRING`) are no longer used anywhere.

Solution: Remove them.
This commit is contained in:
Famiu Haque
2023-12-06 13:39:36 +06:00
committed by GitHub
parent 5b40a1c09d
commit e718866358
2 changed files with 4 additions and 15 deletions

View File

@@ -400,7 +400,7 @@ int get_option_attrs(char *name)
vimoption_T *opt = get_option(opt_idx);
if (is_tty_option(opt->fullname)) {
return SOPT_STRING | SOPT_GLOBAL;
return SOPT_GLOBAL;
}
// Hidden option
@@ -410,14 +410,6 @@ int get_option_attrs(char *name)
int attrs = 0;
if (opt->flags & P_BOOL) {
attrs |= SOPT_BOOL;
} else if (opt->flags & P_NUM) {
attrs |= SOPT_NUM;
} else if (opt->flags & P_STRING) {
attrs |= SOPT_STRING;
}
if (opt->indir == PV_NONE || (opt->indir & PV_BOTH)) {
attrs |= SOPT_GLOBAL;
}