From: Dirk Lemstra Date: Mon, 2 Apr 2018 07:23:35 +0000 (+0200) Subject: Removed unused variable. X-Git-Tag: 7.0.7-29~215 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=108e8071e7ccd026e396d66afcf782b895a1e6b8;p=imagemagick Removed unused variable. --- diff --git a/coders/jp2.c b/coders/jp2.c index c159ba32c..4efe99d99 100644 --- a/coders/jp2.c +++ b/coders/jp2.c @@ -267,9 +267,6 @@ static Image *ReadJP2Image(const ImageInfo *image_info,ExceptionInfo *exception) opj_codec_t *jp2_codec; - opj_codestream_index_t - *codestream_index = (opj_codestream_index_t *) NULL; - opj_dparameters_t parameters; @@ -434,7 +431,6 @@ static Image *ReadJP2Image(const ImageInfo *image_info,ExceptionInfo *exception) { opj_destroy_codec(jp2_codec); opj_image_destroy(jp2_image); - opj_destroy_cstr_index(&codestream_index); return(GetFirstImageInList(image)); } for (y=0; y < (ssize_t) image->rows; y++) @@ -515,7 +511,6 @@ static Image *ReadJP2Image(const ImageInfo *image_info,ExceptionInfo *exception) */ opj_destroy_codec(jp2_codec); opj_image_destroy(jp2_image); - opj_destroy_cstr_index(&codestream_index); (void) CloseBlob(image); return(GetFirstImageInList(image)); }