patch 8.1.0785: depending on the configuration some functions are unused
Problem: Depending on the configuration some functions are unused.
Solution: Add more #ifdefs, remove unused functions. (Dominique Pelle,
closes #3822)
diff --git a/src/option.c b/src/option.c
index 3be4447..8deac53 100644
--- a/src/option.c
+++ b/src/option.c
@@ -10699,6 +10699,7 @@
#endif
}
+#if defined(FEAT_PYTHON) || defined(FEAT_PYTHON3) || defined(PROTO)
/*
* Unset local option value, similar to ":set opt<".
*/
@@ -10800,6 +10801,7 @@
#endif
}
}
+#endif
/*
* Get pointer to option variable, depending on local or global scope.
@@ -13122,6 +13124,7 @@
return TRUE;
}
+#if defined(FEAT_BEVAL) || defined(PROTO)
/*
* Copy a tabstop array, allocating space for the new array.
*/
@@ -13140,6 +13143,7 @@
return newts;
}
+#endif
/*
* Return a count of the number of tabstops.