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

index 67ea090495656438663d00b5ee4a8bf4ebc3d00b..7508dc4fd70bfc5cf630d1c7cc03f36ff0326d05 100644 (file)
@@ -60,7 +60,6 @@ static switch_status_t png_file_open(switch_file_handle_t *handle, const char *p
 {
        png_file_context_t *context;
        char *ext;
-       unsigned int flags = 0;
 
        if ((ext = strrchr((char *)path, '.')) == 0) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid Format\n");
@@ -76,10 +75,6 @@ static switch_status_t png_file_open(switch_file_handle_t *handle, const char *p
                return SWITCH_STATUS_GENERR;
        }
 
-       if (switch_test_flag(handle, SWITCH_FILE_FLAG_READ)) {
-               flags |= SWITCH_FOPEN_READ;
-       }
-
        memset(context, 0, sizeof(png_file_context_t));
        context->max = 10000;
        switch_mutex_init(&context->mutex, SWITCH_MUTEX_NESTED, handle->memory_pool);