[OpenBIOS] [PATCH 01/20] video_common.c: remove video_open() and video_write() methods

Mark Cave-Ayland mark.cave-ayland at ilande.co.uk
Sat Jun 15 10:38:39 CEST 2013


These were only included to allow switching between the C terminal and the
Forth terminal during development.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>
---
 openbios-devel/libopenbios/video_common.c |   28 ----------------------------
 1 file changed, 28 deletions(-)

diff --git a/openbios-devel/libopenbios/video_common.c b/openbios-devel/libopenbios/video_common.c
index d6334de..29ee876 100644
--- a/openbios-devel/libopenbios/video_common.c
+++ b/openbios-devel/libopenbios/video_common.c
@@ -319,26 +319,6 @@ refresh_palette( void )
 #endif
 }
 
-static void
-video_open(void)
-{
-	PUSH(-1);
-}
-
-/* ( addr len -- actual ) */
-static void
-video_write(void)
-{
-    char *addr;
-    int len;
-
-    len = POP();
-    addr = (char *)cell2pointer(POP());
-
-    console_draw_fstr(addr, len);
-    PUSH(len);
-}
-
 /* ( color_ind x y width height -- ) (?) */
 void
 video_fill_rect(void)
@@ -383,14 +363,6 @@ init_video( unsigned long fb, int width, int height, int depth, int rb )
 
 		activate_dev(ph);
 
-		if (!find_package_method("open", ph)) {
-                        bind_func("open", video_open);
-		}
-
-		if (!find_package_method("write", ph)) {
-                        bind_func("write", video_write);
-		}
-
 		molvideo_init();
 	}
 	video.has_video = 1;
-- 
1.7.10.4




More information about the OpenBIOS mailing list