From fdf2df20091225bdfe975cca3d68c9717738cd0e Mon Sep 17 00:00:00 2001 From: markt Date: Sat, 24 Oct 2009 21:07:13 +0000 Subject: [PATCH] Remove unused field git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@829451 13f79535-47bb-0310-9956-ffa450edef68 --- .../tomcat/util/http/fileupload/DeferredFileOutputStream.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/java/org/apache/tomcat/util/http/fileupload/DeferredFileOutputStream.java b/java/org/apache/tomcat/util/http/fileupload/DeferredFileOutputStream.java index 569eb6210..1f26a8427 100644 --- a/java/org/apache/tomcat/util/http/fileupload/DeferredFileOutputStream.java +++ b/java/org/apache/tomcat/util/http/fileupload/DeferredFileOutputStream.java @@ -42,20 +42,13 @@ public class DeferredFileOutputStream /** - * The output stream to which data will be written prior to the theshold + * The output stream to which data will be written prior to the threshold * being reached. */ private ByteArrayOutputStream memoryOutputStream; /** - * The output stream to which data will be written after the theshold is - * reached. - */ - private FileOutputStream diskOutputStream; - - - /** * The output stream to which data will be written at any given time. This * will always be one of memoryOutputStream or * diskOutputStream. @@ -126,7 +119,6 @@ public class DeferredFileOutputStream byte[] data = memoryOutputStream.toByteArray(); FileOutputStream fos = new FileOutputStream(outputFile); fos.write(data); - diskOutputStream = fos; currentOutputStream = fos; memoryOutputStream = null; } -- 2.11.0