From 3fcff30d9ad509b3bf1e10d24a6439ce2426d1a3 Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Wed, 2 Apr 2014 11:32:41 -0300 Subject: Remove `:shell` and `suspend_shell` Issue #450 contains more details --- src/ex_cmds_defs.h | 2 -- src/ex_docmd.c | 9 --------- src/ui.c | 17 ----------------- 3 files changed, 28 deletions(-) diff --git a/src/ex_cmds_defs.h b/src/ex_cmds_defs.h index 3b173341e1..87f6c8c86c 100644 --- a/src/ex_cmds_defs.h +++ b/src/ex_cmds_defs.h @@ -843,8 +843,6 @@ enum CMD_index BANG|FILE1|RANGE|NOTADR|EDITCMD|ARGOPT|TRLBAR), EX(CMD_sfirst, "sfirst", ex_rewind, EXTRA|BANG|EDITCMD|ARGOPT|TRLBAR), - EX(CMD_shell, "shell", ex_shell, - TRLBAR|CMDWIN), EX(CMD_simalt, "simalt", ex_simalt, NEEDARG|WORD1|TRLBAR|CMDWIN), EX(CMD_sign, "sign", ex_sign, diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 6d2a58b246..888148eb69 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -155,7 +155,6 @@ static void ex_stop(exarg_T *eap); static void ex_exit(exarg_T *eap); static void ex_print(exarg_T *eap); static void ex_goto(exarg_T *eap); -static void ex_shell(exarg_T *eap); static void ex_preserve(exarg_T *eap); static void ex_recover(exarg_T *eap); static void ex_mode(exarg_T *eap); @@ -5722,14 +5721,6 @@ static void ex_goto(exarg_T *eap) goto_byte(eap->line2); } -/* - * ":shell". - */ -static void ex_shell(exarg_T *eap) -{ - do_shell(NULL, 0); -} - #if (defined(FEAT_WINDOWS) && defined(HAVE_DROP_FILE)) \ || (defined(FEAT_GUI_GTK) && defined(FEAT_DND)) \ || defined(FEAT_GUI_MSWIN) \ diff --git a/src/ui.c b/src/ui.c index 685b44ed28..43a99adef4 100644 --- a/src/ui.c +++ b/src/ui.c @@ -209,23 +209,6 @@ void ui_suspend(void) mch_suspend(); } -#if !defined(UNIX) || !defined(SIGTSTP) || defined(PROTO) || defined(__BEOS__) -/* - * When the OS can't really suspend, call this function to start a shell. - * This is never called in the GUI. - */ -void suspend_shell(void) -{ - if (*p_sh == NUL) - EMSG(_(e_shellempty)); - else { - MSG_PUTS(_("new shell started\n")); - do_shell(NULL, 0); - } -} - -#endif - /* * Try to get the current Vim shell size. Put the result in Rows and Columns. * Use the new sizes as defaults for 'columns' and 'lines'. -- cgit