Ticket #3547: mc-3547-remove-unused-function-exec_shell.patch

File mc-3547-remove-unused-function-exec_shell.patch, 1.2 KB (added by and, 8 years ago)
  • src/execute.c

    From a471fc273a529bc3de3a7aa4a2ffe3e76c8c1f46 Mon Sep 17 00:00:00 2001
    From: Andreas Mohr <and@gmx.li>
    Date: Sun, 20 Dec 2015 23:07:45 +0000
    Subject: [PATCH] remove unused function exec_shell()
    
    Signed-off-by: Andreas Mohr <and@gmx.li>
    ---
     src/execute.c | 8 --------
     src/execute.h | 3 ---
     2 files changed, 11 deletions(-)
    
    diff --git a/src/execute.c b/src/execute.c
    index b778a73..9e491a5 100644
    a b shell_execute (const char *command, int flags) 
    443443/* --------------------------------------------------------------------------------------------- */ 
    444444 
    445445void 
    446 exec_shell (void) 
    447 { 
    448     do_execute (mc_global.shell->path, 0, 0); 
    449 } 
    450  
    451 /* --------------------------------------------------------------------------------------------- */ 
    452  
    453 void 
    454446toggle_panels (void) 
    455447{ 
    456448#ifdef ENABLE_SUBSHELL 
  • src/execute.h

    diff --git a/src/execute.h b/src/execute.h
    index a8a00ef..56d24c5 100644
    a b extern int pause_after_run; 
    3131/* Execute functions that use the shell to execute */ 
    3232void shell_execute (const char *command, int flags); 
    3333 
    34 /* This one executes a shell */ 
    35 void exec_shell (void); 
    36  
    3734/* Handle toggling panels by Ctrl-O */ 
    3835void toggle_panels (void); 
    3936