]> granicus.if.org Git - imagemagick/commitdiff
Removed unused variable.
authorDirk Lemstra <dirk@git.imagemagick.org>
Mon, 2 Apr 2018 07:23:35 +0000 (09:23 +0200)
committerDirk Lemstra <dirk@git.imagemagick.org>
Mon, 2 Apr 2018 11:18:37 +0000 (13:18 +0200)
coders/jp2.c

index c159ba32c9d6208e4d713c06e36b90fb5f6a660b..4efe99d99545fc084505964f0479c5565d4b663c 100644 (file)
@@ -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));
 }