提交 11744131 authored 作者: Michael Jerris's avatar Michael Jerris

remove unused variable

上级 c51b55a4
...@@ -48,7 +48,6 @@ SWITCH_DECLARE(switch_status_t) switch_core_perform_file_open(const char *file, ...@@ -48,7 +48,6 @@ SWITCH_DECLARE(switch_status_t) switch_core_perform_file_open(const char *file,
const char *spool_path = NULL; const char *spool_path = NULL;
int is_stream = 0; int is_stream = 0;
char *fp = NULL; char *fp = NULL;
switch_event_t *params = NULL;
int to = 0; int to = 0;
if (switch_test_flag(fh, SWITCH_FILE_OPEN)) { 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, ...@@ -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; 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 ((status = fh->file_interface->file_open(fh, file_path)) != SWITCH_STATUS_SUCCESS) {
if (fh->spool_path) { 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); 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);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论