Mercurial > vim
diff src/option.c @ 28405:473cfd79bcd8 v8.2.4727
patch 8.2.4727: unused code
Commit: https://github.com/vim/vim/commit/7765f5cf964c751cd780484220bb65773b1b0348
Author: Dominique Pelle <dominique.pelle@gmail.com>
Date: Sun Apr 10 11:26:53 2022 +0100
patch 8.2.4727: unused code
Problem: Unused code.
Solution: Remove code and add #ifdefs. (Dominique Pell?, closes https://github.com/vim/vim/issues/10136)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 10 Apr 2022 12:30:05 +0200 |
parents | 86b6432aa1d8 |
children | 4dcccb2673fe |
line wrap: on
line diff
--- a/src/option.c +++ b/src/option.c @@ -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.