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/mbyte.c b/src/mbyte.c
index b6758a1..f33841c 100644
--- a/src/mbyte.c
+++ b/src/mbyte.c
@@ -844,6 +844,7 @@
     return n;
 }
 
+#if defined(FEAT_QUICKFIX) || defined(PROTO)
 /*
  * Remove all BOM from "s" by moving remaining text.
  */
@@ -863,6 +864,7 @@
 	}
     }
 }
+#endif
 
 /*
  * Get class of pointer: