patch 8.2.4727: unused code
Problem: Unused code.
Solution: Remove code and add #ifdefs. (Dominique Pellé, closes #10136)
diff --git a/src/option.c b/src/option.c
index f636985..cfd6817 100644
--- a/src/option.c
+++ b/src/option.c
@@ -4463,6 +4463,7 @@
return (char_u *)NULL;
}
+#if defined(FEAT_QUICKFIX) || defined(PROTO)
int
is_option_allocated(char *name)
{
@@ -4470,6 +4471,7 @@
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 @@
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 @@
return p_flp;
return buf->b_p_flp;
}
+#endif
/*
* Get the local or global value of the 'virtualedit' flags.