From e9dee0708033c919dd6c08d28b446bd459963be4 Mon Sep 17 00:00:00 2001 From: Timur Saglam Date: Mon, 19 Feb 2024 16:51:44 +0100 Subject: [PATCH 1/2] Remove duplicate dependency version. --- language-antlr-utils/pom.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/language-antlr-utils/pom.xml b/language-antlr-utils/pom.xml index c5542fbfc..6697788a5 100644 --- a/language-antlr-utils/pom.xml +++ b/language-antlr-utils/pom.xml @@ -14,7 +14,6 @@ org.antlr antlr4-runtime - 4.13.1 de.jplag From 94b601a11ddfcff0f50bbf1982743729f9b7c5fd Mon Sep 17 00:00:00 2001 From: Timur Saglam Date: Mon, 19 Feb 2024 16:52:02 +0100 Subject: [PATCH 2/2] Remove unused code. --- .../java/de/jplag/NumberOfArgumentValues.java | 21 ------------------- .../de/jplag/SubsequenceHashLookupTable.java | 10 --------- .../exceptions/ConfigurationException.java | 15 ------------- 3 files changed, 46 deletions(-) delete mode 100644 core/src/main/java/de/jplag/NumberOfArgumentValues.java delete mode 100644 core/src/main/java/de/jplag/exceptions/ConfigurationException.java diff --git a/core/src/main/java/de/jplag/NumberOfArgumentValues.java b/core/src/main/java/de/jplag/NumberOfArgumentValues.java deleted file mode 100644 index 8a4987c2a..000000000 --- a/core/src/main/java/de/jplag/NumberOfArgumentValues.java +++ /dev/null @@ -1,21 +0,0 @@ -package de.jplag; - -/** - * Allowed number of values of a command-line argument in the CLI. - */ -public enum NumberOfArgumentValues { - SINGLE_VALUE(""), - ONE_OR_MORE_VALUES("+"), - ZERO_OR_MORE_VALUES("*"); - - private final String representation; - - NumberOfArgumentValues(String representation) { - this.representation = representation; - } - - @Override - public String toString() { - return representation; - } -} \ No newline at end of file diff --git a/core/src/main/java/de/jplag/SubsequenceHashLookupTable.java b/core/src/main/java/de/jplag/SubsequenceHashLookupTable.java index aa44c783b..e19a41643 100644 --- a/core/src/main/java/de/jplag/SubsequenceHashLookupTable.java +++ b/core/src/main/java/de/jplag/SubsequenceHashLookupTable.java @@ -46,16 +46,6 @@ class SubsequenceHashLookupTable { computeSubsequenceHashes(marked); } - /** Returns the size of the subsequences used for hashing */ - int getWindowSize() { - return windowSize; - } - - /** Returns the list of values for which the hashes were computed */ - int[] getValues() { - return values; - } - /** * Returns the hash over the subsequence from startIndex to startIndex+windowSize. * @param startIndex the start index. diff --git a/core/src/main/java/de/jplag/exceptions/ConfigurationException.java b/core/src/main/java/de/jplag/exceptions/ConfigurationException.java deleted file mode 100644 index e29bdf9b4..000000000 --- a/core/src/main/java/de/jplag/exceptions/ConfigurationException.java +++ /dev/null @@ -1,15 +0,0 @@ -package de.jplag.exceptions; - -import java.io.Serial; - -/** - * Exceptions used if configuration is wrong. - */ -public class ConfigurationException extends ExitException { - @Serial - private static final long serialVersionUID = 4625302641982932127L; // generated - - public ConfigurationException(String message) { - super(message); - } -}