commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1189682 - /commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveUtil.java
Date Thu, 27 Oct 2011 08:53:38 GMT
Author: bodewig
Date: Thu Oct 27 08:53:37 2011
New Revision: 1189682

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

Modified:
    commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveUtil.java

Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveUtil.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveUtil.java?rev=1189682&r1=1189681&r2=1189682&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveUtil.java
(original)
+++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveUtil.java
Thu Oct 27 08:53:37 2011
@@ -130,28 +130,4 @@ class DumpArchiveUtil {
 
         return i;
     }
-
-    /**
-     * Dump the start of a block.
-     *
-     * @param buffer
-     */
-    public static final void dumpBlock(byte[] buffer) {
-        for (int i = 0; i < 128; i += 32) {
-            System.out.printf("%08x ", DumpArchiveUtil.convert32(buffer, i));
-            System.out.printf("%08x ", DumpArchiveUtil.convert32(buffer, i + 4));
-            System.out.printf("%08x ", DumpArchiveUtil.convert32(buffer, i + 8));
-            System.out.printf("%08x - ",
-                DumpArchiveUtil.convert32(buffer, i + 12));
-            System.out.printf("%08x ", DumpArchiveUtil.convert32(buffer, i +
-                    16));
-            System.out.printf("%08x ", DumpArchiveUtil.convert32(buffer, i +
-                    20));
-            System.out.printf("%08x ", DumpArchiveUtil.convert32(buffer, i +
-                    24));
-            System.out.printf("%08x ", DumpArchiveUtil.convert32(buffer, i +
-                    28));
-            System.out.println();
-        }
-    }
 }



Mime
View raw message