Remove obsolete conditional
Project: http://git-wip-us.apache.org/repos/asf/commons-text/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-text/commit/a7045b5d Tree: http://git-wip-us.apache.org/repos/asf/commons-text/tree/a7045b5d Diff: http://git-wip-us.apache.org/repos/asf/commons-text/diff/a7045b5d Branch: refs/heads/master Commit: a7045b5df428284762f2bb9cc4e22422f33d0d73 Parents: 6b85ebe Author: Luciano Quintabani <lquintab...@medallia.com> Authored: Sun Jul 15 18:04:49 2018 -0300 Committer: Luciano Quintabani <lquintab...@medallia.com> Committed: Sun Jul 15 18:04:49 2018 -0300 ---------------------------------------------------------------------- .../apache/commons/text/similarity/LevenshteinDistance.java | 6 ------ 1 file changed, 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-text/blob/a7045b5d/src/main/java/org/apache/commons/text/similarity/LevenshteinDistance.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/text/similarity/LevenshteinDistance.java b/src/main/java/org/apache/commons/text/similarity/LevenshteinDistance.java index f0f2874..d509a25 100644 --- a/src/main/java/org/apache/commons/text/similarity/LevenshteinDistance.java +++ b/src/main/java/org/apache/commons/text/similarity/LevenshteinDistance.java @@ -270,12 +270,6 @@ public class LevenshteinDistance implements EditDistance<Integer> { final int max = j > Integer.MAX_VALUE - threshold ? n : Math.min( n, j + threshold); - // the stripe may lead off of the table if s and t are of different - // sizes - if (min > max) { - return -1; - } - // ignore entry left of leftmost if (min > 1) { d[min - 1] = Integer.MAX_VALUE;