Skip to content
Permalink
Browse files
Remove unused code
  • Loading branch information
markt-asf committed Sep 2, 2021
1 parent b1bd00e commit 6496a602348098152b2a758fcc5cc266a61472aa
Showing 1 changed file with 0 additions and 9 deletions.
@@ -69,11 +69,6 @@ public class FileItemStreamImpl implements FileItemStream {
*/
private final InputStream stream;

/**
* Whether the file item was already opened.
*/
private boolean opened;

/**
* The headers, if any.
*/
@@ -189,10 +184,6 @@ public boolean isFormField() {
*/
@Override
public InputStream openStream() throws IOException {
if (opened) {
throw new IllegalStateException(
"The stream was already opened.");
}
if (((Closeable) stream).isClosed()) {
throw new FileItemStream.ItemSkippedException();
}

0 comments on commit 6496a60

Please sign in to comment.