From 8daf2b6659c895021bd0af213e12298300dc33b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sat, 30 Mar 2013 23:15:08 +0100 Subject: [PATCH] ctk-curses: remove unused code The setupterm() call is not needed when using curses. --- platform/native/ctk/ctk-curses.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/platform/native/ctk/ctk-curses.c b/platform/native/ctk/ctk-curses.c index c5a4b4d61..6de8b1f9b 100644 --- a/platform/native/ctk/ctk-curses.c +++ b/platform/native/ctk/ctk-curses.c @@ -51,9 +51,6 @@ #define MKPAIR(bg, fg) (bg << 3 | fg) -static int stdinhandle; -static int stdouthandle; - static unsigned char width; static unsigned char height; @@ -110,12 +107,6 @@ console_init(void) } done = 1; - stdinhandle = STDIN_FILENO; - stdouthandle = STDOUT_FILENO; - - /* will display an error and exit if the term can't be initialized */ - /*setupterm((char *)0, STDOUT_FILENO, (int *)0); */ - initscr(); start_color(); cbreak();