diff --git a/lib/jar.includes b/lib/jar.includes index c4e50c88..2b99594e 100644 --- a/lib/jar.includes +++ b/lib/jar.includes @@ -56,5 +56,4 @@ ivy/bundle/json-io.jar ivy/bundle/guava.jar ivy/bundle/failureaccess.jar jars/xmlrpc.jar -jars/ObjCBridge.jar -jars/jacksum.jar \ No newline at end of file +jars/ObjCBridge.jar \ No newline at end of file diff --git a/lib/jars/jacksum.jar b/lib/jars/jacksum.jar deleted file mode 100644 index e71161f8..00000000 Binary files a/lib/jars/jacksum.jar and /dev/null differ diff --git a/source/net/filebot/hash/HashType.java b/source/net/filebot/hash/HashType.java index 5d39ba56..92b47221 100644 --- a/source/net/filebot/hash/HashType.java +++ b/source/net/filebot/hash/HashType.java @@ -91,7 +91,7 @@ public enum HashType { public String toString() { return "SHA2"; } - }, + }; // SHA3_384 { // @@ -117,29 +117,6 @@ public enum HashType { // } // }, - ED2K { - - @Override - public Hash newHash() { - return JacksumHash.newED2K(); - } - - @Override - public VerificationFormat getFormat() { - return new VerificationFormat(); - } - - @Override - public ExtensionFileFilter getFilter() { - return MediaTypes.getTypeFilter("verification/ed2k"); - } - - @Override - public String toString() { - return "ED2K"; - } - }; - public abstract Hash newHash(); public abstract VerificationFormat getFormat(); diff --git a/source/net/filebot/hash/JacksumHash.java b/source/net/filebot/hash/JacksumHash.java deleted file mode 100644 index 26a809fe..00000000 --- a/source/net/filebot/hash/JacksumHash.java +++ /dev/null @@ -1,33 +0,0 @@ - -package net.filebot.hash; - -import jonelo.jacksum.algorithm.AbstractChecksum; -import jonelo.jacksum.algorithm.Edonkey; - -public class JacksumHash implements Hash { - - private final AbstractChecksum checksum; - - public JacksumHash(AbstractChecksum checksum) { - this.checksum = checksum; - } - - @Override - public void update(byte[] bytes, int off, int len) { - checksum.update(bytes, off, len); - } - - @Override - public String digest() { - return checksum.getFormattedValue(); - } - - public static Hash newED2K() { - try { - return new JacksumHash(new Edonkey()); - } catch (Exception e) { - throw new IllegalStateException(e); - } - } - -}