Ticket #3547: mc-3547-cleanup-unused-parent_call_string-function.patch

File mc-3547-cleanup-unused-parent_call_string-function.patch, 1.5 KB (added by and, 6 years ago)
  • src/background.c

    From c22cc130b46432ebf78d64ebd1f9afb56bd19ea6 Mon Sep 17 00:00:00 2001
    From: Andreas Mohr <and@gmx.li>
    Date: Fri, 1 Jan 2016 17:10:33 +0000
    Subject: [PATCH] cleanup unused parent_call_string function
    
    Signed-off-by: Andreas Mohr <and@gmx.li>
    ---
     src/background.c | 15 ---------------
     src/background.h |  1 -
     2 files changed, 16 deletions(-)
    
    diff --git a/src/background.c b/src/background.c
    index 3360855..53391fc 100644
    a b parent_call (void *routine, file_op_context_t * ctx, int argc, ...) 
    601601 
    602602/* --------------------------------------------------------------------------------------------- */ 
    603603 
    604 char * 
    605 parent_call_string (void *routine, int argc, ...) 
    606 { 
    607     va_list ap; 
    608     char *str; 
    609  
    610     va_start (ap, argc); 
    611     str = parent_va_call_string (routine, argc, ap); 
    612     va_end (ap); 
    613  
    614     return str; 
    615 } 
    616  
    617 /* --------------------------------------------------------------------------------------------- */ 
    618  
    619604/* event callback */ 
    620605gboolean 
    621606background_parent_call (const gchar * event_group_name, const gchar * event_name, 
  • src/background.h

    diff --git a/src/background.h b/src/background.h
    index 33c421c..3d030a3 100644
    a b extern struct TaskList *task_list; 
    3737 
    3838int do_background (file_op_context_t * ctx, char *info); 
    3939int parent_call (void *routine, file_op_context_t * ctx, int argc, ...); 
    40 char *parent_call_string (void *routine, int argc, ...); 
    4140 
    4241void unregister_task_running (pid_t pid, int fd); 
    4342void unregister_task_with_pid (pid_t pid);