Remove unused function unset_global_local_option.

This commit is contained in:
Thomas Wienecke 2014-04-10 19:15:20 +02:00
parent f752020abb
commit f7ac54759b
2 changed files with 0 additions and 63 deletions

View File

@ -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.
*/

View File

@ -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);