]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_imagick] Remove unused variable. 423/head
authorAndrey Volk <andywolk@gmail.com>
Tue, 25 Feb 2020 20:45:19 +0000 (00:45 +0400)
committerAndrey Volk <andywolk@gmail.com>
Tue, 25 Feb 2020 20:45:19 +0000 (00:45 +0400)
src/mod/formats/mod_imagick/mod_imagick.c

index d008632b74f657b2ecbec5b22f593c636c0d3a74..64ee6762e9f5f8cb758bb6db5e73fa3d3c7125e3 100644 (file)
@@ -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;
        }