patch 9.0.1403: unused variables and functions
Problem: Unused variables and functions.
Solution: Delete items and adjust #ifdefs. (Dominique Pellé, closes #12145)
diff --git a/src/optionstr.c b/src/optionstr.c
index f88325c..8aec385 100644
--- a/src/optionstr.c
+++ b/src/optionstr.c
@@ -429,6 +429,8 @@
# endif
}
+#if defined(FEAT_PROP_POPUP) || \
+ (defined(FEAT_DIFF) && defined(FEAT_FOLDING)) || defined(PROTO)
/*
* Like set_string_option_direct(), but for a window-local option in "wp".
* Blocks autocommands to avoid the old curwin becoming invalid.
@@ -452,6 +454,7 @@
curbuf = curwin->w_buffer;
unblock_autocmds();
}
+#endif
#if defined(FEAT_PROP_POPUP) || defined(PROTO)
/*