1
0
forked from aniani/vim

patch 8.2.4727: unused code

Problem:    Unused code.
Solution:   Remove code and add #ifdefs. (Dominique Pellé, closes #10136)
This commit is contained in:
Dominique Pelle
2022-04-10 11:26:53 +01:00
committed by Bram Moolenaar
parent 6013d0045d
commit 7765f5cf96
8 changed files with 38 additions and 46 deletions

View File

@@ -4463,6 +4463,7 @@ get_encoding_default(void)
return (char_u *)NULL;
}
#if defined(FEAT_QUICKFIX) || defined(PROTO)
int
is_option_allocated(char *name)
{
@@ -4470,6 +4471,7 @@ is_option_allocated(char *name)
return idx >= 0 && (options[idx].flags & P_ALLOCED);
}
#endif
/*
* Translate a string like "t_xx", "<t_xx>" or "<S-Tab>" to a key number.
@@ -7179,6 +7181,7 @@ get_bkc_value(buf_T *buf)
return buf->b_bkc_flags ? buf->b_bkc_flags : bkc_flags;
}
#if defined(FEAT_LINEBREAK) || defined(PROTO)
/*
* Get the local or global value of 'formatlistpat'.
*/
@@ -7189,6 +7192,7 @@ get_flp_value(buf_T *buf)
return p_flp;
return buf->b_p_flp;
}
#endif
/*
* Get the local or global value of the 'virtualedit' flags.