Add a few #ifdefs to exclude functions that are not used. (Domnique Pelle)
diff --git a/src/screen.c b/src/screen.c
index 38d577e..df5489f 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -297,6 +297,8 @@
 #endif
 }
 
+#if defined(FEAT_RUBY) || defined(FEAT_VISUAL) || \
+    (defined(FEAT_CLIPBOARD) && defined(FEAT_X11)) || defined(PROTO)
 /*
  * update all windows that are editing the current buffer
  */
@@ -307,6 +309,7 @@
     redraw_curbuf_later(type);
     update_screen(type);
 }
+#endif
 
 /*
  * update_screen()