Remove mch_screenmode, inline EMSG into ex_mode()

This commit is contained in:
Stefan Hoffmann 2014-04-22 16:34:30 +02:00 committed by Thiago de Arruda
parent 3f38c384ef
commit bf9aeda01c
4 changed files with 6 additions and 20 deletions

View File

@ -6159,15 +6159,16 @@ static void ex_tabs(exarg_T *eap)
/*
* ":mode": Set screen mode.
* If no argument given, just get the screen size and redraw.
* ":mode":
* If no argument given, get the screen size and redraw.
*/
static void ex_mode(exarg_T *eap)
{
if (*eap->arg == NUL)
if (*eap->arg == NUL) {
shell_resized();
else
mch_screenmode(eap->arg);
} else {
EMSG(_(e_screenmode));
}
}
/*

View File

@ -1080,11 +1080,8 @@ EXTERN char_u e_readerrf[] INIT(= N_("E47: Error while reading errorfile"));
EXTERN char_u e_sandbox[] INIT(= N_("E48: Not allowed in sandbox"));
#endif
EXTERN char_u e_secure[] INIT(= N_("E523: Not allowed here"));
#if defined(AMIGA) || defined(MACOS) || defined(MSWIN) \
|| defined(UNIX) || defined(VMS) || defined(OS2)
EXTERN char_u e_screenmode[] INIT(= N_(
"E359: Screen mode setting not supported"));
#endif
EXTERN char_u e_scroll[] INIT(= N_("E49: Invalid scroll size"));
EXTERN char_u e_shellempty[] INIT(= N_("E91: 'shell' option is empty"));
EXTERN char_u e_signdata[] INIT(= N_("E255: Couldn't read in sign data!"));

View File

@ -889,17 +889,6 @@ void check_mouse_termcode()
del_mouse_termcode(KS_SGR_MOUSE);
}
/*
* set screen mode, always fails.
*/
int mch_screenmode(arg)
char_u *arg;
{
EMSG(_(e_screenmode));
return FAIL;
}
/*
* Try to get the current window size:
* 1. with an ioctl(), most accurate method

View File

@ -32,7 +32,6 @@ void mch_settmode(int tmode);
void get_stty(void);
void mch_setmouse(int on);
void check_mouse_termcode(void);
int mch_screenmode(char_u *arg);
int mch_get_shellsize(void);
void mch_set_shellsize(void);
int mch_expand_wildcards(int num_pat, char_u **pat, int *num_file,