Skip to content

Commit e7ccdd3

Browse files
committed
R remove field with query
1 parent 90ebeb0 commit e7ccdd3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

approvaltests/src/main/java/org/approvaltests/awt/GifSequenceWriter.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ public class GifSequenceWriter implements AutoCloseable
3737
private final boolean loopContinuously;
3838
protected ImageWriter gifWriter;
3939
protected ImageWriteParam imageWriteParam;
40-
protected IIOMetadata imageMetaData;
4140
/**
4241
* Creates a new GifSequenceWriter
4342
*
@@ -57,7 +56,6 @@ public GifSequenceWriter(ImageOutputStream outputStream, int imageType, Duration
5756
this.loopContinuously = loopContinuously;
5857
gifWriter = getWriter();
5958
imageWriteParam = gifWriter.getDefaultWriteParam();
60-
imageMetaData = getMetadata(timeBetweenFrames);
6159
gifWriter.setOutput(outputStream);
6260
gifWriter.prepareWriteSequence(null);
6361
}
@@ -111,7 +109,7 @@ static File writeAnimatedGif(File imageFile, ArrayList<BufferedImage> images, Du
111109
}
112110
public void writeToSequence(RenderedImage img) throws IOException
113111
{
114-
gifWriter.writeToSequence(new IIOImage(img, null, imageMetaData), imageWriteParam);
112+
gifWriter.writeToSequence(new IIOImage(img, null, getMetadata(timeBetweenFramesMS)), imageWriteParam);
115113
}
116114
/**
117115
* Close this GifSequenceWriter object. This does not close the underlying

0 commit comments

Comments
 (0)