commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1189269 - /commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveOutputStream.java
Date Wed, 26 Oct 2011 15:35:05 GMT
Author: bodewig
Date: Wed Oct 26 15:35:05 2011
New Revision: 1189269

URL: http://svn.apache.org/viewvc?rev=1189269&view=rev
Log:
unused field

Modified:
    commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveOutputStream.java

Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveOutputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveOutputStream.java?rev=1189269&r1=1189268&r2=1189269&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveOutputStream.java
(original)
+++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveOutputStream.java
Wed Oct 26 15:35:05 2011
@@ -39,7 +39,6 @@ public class ArArchiveOutputStream exten
     public static final int LONGFILE_BSD = 1;
 
     private final OutputStream out;
-    private long archiveOffset = 0;
     private long entryOffset = 0;
     private ArArchiveEntry prevEntry;
     private boolean haveUnclosedEntry = false;
@@ -81,7 +80,6 @@ public class ArArchiveOutputStream exten
         }
         if ((entryOffset % 2) != 0) {
             out.write('\n'); // Pad byte
-            archiveOffset++;
         }
         haveUnclosedEntry = false;
     }
@@ -95,7 +93,7 @@ public class ArArchiveOutputStream exten
 
         ArArchiveEntry pArEntry = (ArArchiveEntry)pEntry;
         if (prevEntry == null) {
-            archiveOffset += writeArchiveHeader();
+            writeArchiveHeader();
         } else {
             if (prevEntry.getLength() != entryOffset) {
                 throw new IOException("length does not match entry (" + prevEntry.getLength()
+ " != " + entryOffset);
@@ -108,7 +106,7 @@ public class ArArchiveOutputStream exten
 
         prevEntry = pArEntry;
 
-        archiveOffset += writeEntryHeader(pArEntry);
+        writeEntryHeader(pArEntry);
 
         entryOffset = 0;
         haveUnclosedEntry = true;



Mime
View raw message