commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject commons-compress git commit: remove unused code
Date Tue, 20 Dec 2016 15:07:42 GMT
Repository: commons-compress
Updated Branches:
  refs/heads/master c497504c0 -> ea35f646a


remove unused code


Project: http://git-wip-us.apache.org/repos/asf/commons-compress/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-compress/commit/ea35f646
Tree: http://git-wip-us.apache.org/repos/asf/commons-compress/tree/ea35f646
Diff: http://git-wip-us.apache.org/repos/asf/commons-compress/diff/ea35f646

Branch: refs/heads/master
Commit: ea35f646a4a5048adf074d620b82893a2eaa9ed4
Parents: c497504
Author: Stefan Bodewig <bodewig@apache.org>
Authored: Tue Dec 20 16:04:24 2016 +0100
Committer: Stefan Bodewig <bodewig@apache.org>
Committed: Tue Dec 20 16:04:24 2016 +0100

----------------------------------------------------------------------
 .../commons/compress/archivers/sevenz/LZMADecoder.java       | 8 --------
 1 file changed, 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-compress/blob/ea35f646/src/main/java/org/apache/commons/compress/archivers/sevenz/LZMADecoder.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/compress/archivers/sevenz/LZMADecoder.java b/src/main/java/org/apache/commons/compress/archivers/sevenz/LZMADecoder.java
index e49f43a..fea09b4 100644
--- a/src/main/java/org/apache/commons/compress/archivers/sevenz/LZMADecoder.java
+++ b/src/main/java/org/apache/commons/compress/archivers/sevenz/LZMADecoder.java
@@ -25,7 +25,6 @@ import org.apache.commons.compress.utils.FlushShieldFilterOutputStream;
 import org.tukaani.xz.LZMA2Options;
 import org.tukaani.xz.LZMAInputStream;
 import org.tukaani.xz.LZMAOutputStream;
-import org.tukaani.xz.UnsupportedOptionsException;
 
 class LZMADecoder extends CoderBase {
     LZMADecoder() {
@@ -80,13 +79,6 @@ class LZMADecoder extends CoderBase {
         return opts;
     }
 
-    private int getDictSize(final Object opts) {
-        if (opts instanceof LZMA2Options) {
-            return ((LZMA2Options) opts).getDictSize();
-        }
-        return numberOptionOrDefault(opts);
-    }
-
     private int getDictionarySize(final Coder coder) throws IllegalArgumentException {
         long dictSize = coder.properties[1];
         for (int i = 1; i < 4; i++) {


Mime
View raw message