From f7ac54759b09eeae0c7f891cd86f95f5f8ba2de9 Mon Sep 17 00:00:00 2001 From: Thomas Wienecke Date: Thu, 10 Apr 2014 19:15:20 +0200 Subject: [PATCH] Remove unused function unset_global_local_option. --- src/option.c | 62 ---------------------------------------------------- src/option.h | 1 - 2 files changed, 63 deletions(-) diff --git a/src/option.c b/src/option.c index 2c95b8fd37..574478d524 100644 --- a/src/option.c +++ b/src/option.c @@ -6554,68 +6554,6 @@ void comp_col(void) ru_col = 1; } -/* - * Unset local option value, similar to ":set opt<". - */ -void unset_global_local_option(char_u *name, void *from) -{ - struct vimoption *p; - int opt_idx; - buf_T *buf = (buf_T *)from; - - opt_idx = findoption(name); - p = &(options[opt_idx]); - - switch ((int)p->indir) { - /* global option with local value: use local value if it's been set */ - case PV_EP: - clear_string_option(&buf->b_p_ep); - break; - case PV_KP: - clear_string_option(&buf->b_p_kp); - break; - case PV_PATH: - clear_string_option(&buf->b_p_path); - break; - case PV_AR: - buf->b_p_ar = -1; - break; - case PV_TAGS: - clear_string_option(&buf->b_p_tags); - break; - case PV_DEF: - clear_string_option(&buf->b_p_def); - break; - case PV_INC: - clear_string_option(&buf->b_p_inc); - break; - case PV_DICT: - clear_string_option(&buf->b_p_dict); - break; - case PV_TSR: - clear_string_option(&buf->b_p_tsr); - break; - case PV_EFM: - clear_string_option(&buf->b_p_efm); - break; - case PV_GP: - clear_string_option(&buf->b_p_gp); - break; - case PV_MP: - clear_string_option(&buf->b_p_mp); - break; - case PV_CM: - clear_string_option(&buf->b_p_cm); - break; - case PV_STL: - clear_string_option(&((win_T *)from)->w_p_stl); - break; - case PV_UL: - buf->b_p_ul = NO_LOCAL_UNDOLEVEL; - break; - } -} - /* * Get pointer to option variable, depending on local or global scope. */ diff --git a/src/option.h b/src/option.h index 818f4bc2ee..31fd1e2025 100644 --- a/src/option.h +++ b/src/option.h @@ -39,7 +39,6 @@ void free_termoptions(void); void free_one_termoption(char_u *var); void set_term_defaults(void); void comp_col(void); -void unset_global_local_option(char_u *name, void *from); char_u *get_equalprg(void); void win_copy_options(win_T *wp_from, win_T *wp_to); void copy_winopt(winopt_T *from, winopt_T *to);