First round of Sergeev merges.
[super-star-trek.git] / os2.c
diff --git a/os2.c b/os2.c
index ca0eb54264c33687bceb26f3d16abbac308a2888..1670895bbe5e753e80ef0b9bd2c0c5ed98646541 100644 (file)
--- a/os2.c
+++ b/os2.c
@@ -1,31 +1,6 @@
 #include <stdlib.h>\r
 #include <time.h>\r
-#include <sys/ioctl.h>\r
-#include <sys/termio.h>\r
 \r
 void randomize(void) {\r
        srand((int)time(NULL));\r
 }\r
-\r
-\r
-int max(int a, int b) {\r
-       if (a > b) return a;\r
-       return b;\r
-}\r
-\r
-int min(int a, int b) {\r
-       if (a < b) return a;\r
-       return b;\r
-}\r
-\r
-int getch(void) {\r
-       char chbuf[1];\r
-       struct termio oldstate, newstate;\r
-    ioctl(0,TCGETA,&oldstate);\r
-       newstate = oldstate;\r
-       newgame.state.c_iflag = 0;\r
-       newgame.state.c_lflag = 0;\r
-       ioctl(0,TCSETA,&newstate);\r
-       read(0, &chbuf, 1);\r
-    ioctl(0,TCSETA,&oldstate);\r
-}
\ No newline at end of file