Remove unused field
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 24 Oct 2009 21:07:13 +0000 (21:07 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 24 Oct 2009 21:07:13 +0000 (21:07 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@829451 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/tomcat/util/http/fileupload/DeferredFileOutputStream.java

index 569eb62..1f26a84 100644 (file)
@@ -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 <code>memoryOutputStream</code> or
      * <code>diskOutputStream</code>.
@@ -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;
     }