Removed mch_check_win

This commit is contained in:
Pavel Platto 2014-04-16 09:00:41 +03:00 committed by Thiago de Arruda
parent 096eadbcbb
commit a848fad656
3 changed files with 3 additions and 16 deletions

View File

@ -46,6 +46,7 @@
#include "ui.h"
#include "version.h"
#include "window.h"
#include "os/input.h"
#include "os/os.h"
#include "os/signal.h"
@ -76,7 +77,7 @@ typedef struct {
char_u *use_ef; /* 'errorfile' from -q argument */
int want_full_screen;
int stdout_isatty; /* is stdout a terminal? */
bool stdout_isatty; /* is stdout a terminal? */
char_u *term; /* specified terminal name */
int ask_for_key; /* -x argument */
int no_swap_file; /* "-n" argument used */
@ -1337,9 +1338,6 @@ static void command_line_scan(mparm_T *parmp)
/* "--startuptime <file>" already handled */
break;
/* case 'd': -d {device} is handled in mch_check_win() for the
* Amiga */
case 'q': /* "-q {errorfile}" QuickFix mode */
parmp->use_ef = (char_u *)argv[0];
break;
@ -1528,7 +1526,7 @@ static void allocate_generic_buffers(void)
*/
static void check_and_set_isatty(mparm_T *paramp)
{
paramp->stdout_isatty = (mch_check_win(paramp->argc, paramp->argv) != FAIL);
paramp->stdout_isatty = os_isatty(STDOUT_FILENO);
TIME_MSG("window checked");
}

View File

@ -182,16 +182,6 @@ void mch_init()
event_init();
}
/*
* Check_win checks whether we have an interactive stdout.
*/
int mch_check_win(int argc, char **argv)
{
if (isatty(1))
return OK;
return FAIL;
}
/*
* Return TRUE if the input comes from a terminal, FALSE otherwise.
*/

View File

@ -7,7 +7,6 @@
void mch_write(char_u *s, int len);
void mch_suspend(void);
void mch_init(void);
int mch_check_win(int argc, char **argv);
int mch_input_isatty(void);
int mch_can_restore_title(void);
int mch_can_restore_icon(void);