From e8c4de5b48455e517c35a44e5d652e9ae72a7f28 Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Wed, 26 Feb 2020 00:45:19 +0400 Subject: [PATCH] [mod_imagick] Remove unused variable. --- src/mod/formats/mod_imagick/mod_imagick.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/mod/formats/mod_imagick/mod_imagick.c b/src/mod/formats/mod_imagick/mod_imagick.c index d008632b74..64ee6762e9 100644 --- a/src/mod/formats/mod_imagick/mod_imagick.c +++ b/src/mod/formats/mod_imagick/mod_imagick.c @@ -147,7 +147,6 @@ static switch_status_t imagick_file_open(switch_file_handle_t *handle, const cha { pdf_file_context_t *context; char *ext; - unsigned int flags = 0; char range_path[1024]; if ((ext = strrchr((char *)path, '.')) == 0) { @@ -173,10 +172,6 @@ static switch_status_t imagick_file_open(switch_file_handle_t *handle, const cha return SWITCH_STATUS_GENERR; } - if (switch_test_flag(handle, SWITCH_FILE_FLAG_READ)) { - flags |= SWITCH_FOPEN_READ; - } - if (ext && !strcmp(ext, "gif")) { context->autoplay = 1; }