]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
remove unused variable
authorMichael Jerris <mike@jerris.com>
Mon, 28 Apr 2014 16:40:55 +0000 (12:40 -0400)
committerMichael Jerris <mike@jerris.com>
Mon, 28 Apr 2014 16:41:04 +0000 (12:41 -0400)
src/switch_core_file.c

index 663039b4fcaf0e7e6a5cf2f3609d18ff44f5cc80..3c6a2f8494e62158fdda022121e21ff84a3cd525 100644 (file)
@@ -48,7 +48,6 @@ SWITCH_DECLARE(switch_status_t) switch_core_perform_file_open(const char *file,
        const char *spool_path = NULL;
        int is_stream = 0;
        char *fp = NULL;
-       switch_event_t *params = NULL;
        int to = 0;
 
        if (switch_test_flag(fh, SWITCH_FILE_OPEN)) {
@@ -181,10 +180,6 @@ SWITCH_DECLARE(switch_status_t) switch_core_perform_file_open(const char *file,
 
        file_path = fh->spool_path ? fh->spool_path : fh->file_path;
 
-       if (params) {
-               fh->params = params;
-       }
-
        if ((status = fh->file_interface->file_open(fh, file_path)) != SWITCH_STATUS_SUCCESS) {
                if (fh->spool_path) {
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Spool dir is set.  Make sure [%s] is also a valid path\n", fh->spool_path);