diff options
Diffstat (limited to 'core')
-rwxr-xr-x | core/source/core/scala/org/hashtree/stringmetric/phonetic/RefinedSoundexAlgorithm.scala | 2 | ||||
-rwxr-xr-x | core/source/core/scala/org/hashtree/stringmetric/phonetic/SoundexAlgorithm.scala | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/core/source/core/scala/org/hashtree/stringmetric/phonetic/RefinedSoundexAlgorithm.scala b/core/source/core/scala/org/hashtree/stringmetric/phonetic/RefinedSoundexAlgorithm.scala index 8d58885..7fe6d70 100755 --- a/core/source/core/scala/org/hashtree/stringmetric/phonetic/RefinedSoundexAlgorithm.scala +++ b/core/source/core/scala/org/hashtree/stringmetric/phonetic/RefinedSoundexAlgorithm.scala @@ -20,8 +20,6 @@ object RefinedSoundexAlgorithm extends StringAlgorithm with FilterableStringAlgo @tailrec private[this] def transcode(i: Array[Char], o: Array[Char]): Array[Char] = { - require(o.length > 0) - if (i.length == 0) o else { val c = i.head.toLower diff --git a/core/source/core/scala/org/hashtree/stringmetric/phonetic/SoundexAlgorithm.scala b/core/source/core/scala/org/hashtree/stringmetric/phonetic/SoundexAlgorithm.scala index 0b955bb..9f2ed92 100755 --- a/core/source/core/scala/org/hashtree/stringmetric/phonetic/SoundexAlgorithm.scala +++ b/core/source/core/scala/org/hashtree/stringmetric/phonetic/SoundexAlgorithm.scala @@ -24,8 +24,6 @@ object SoundexAlgorithm extends StringAlgorithm with FilterableStringAlgorithm { @tailrec private[this] def transcode(i: Array[Char], p: Char, o: Array[Char]): Array[Char] = { - require(o.length > 0) - if (i.length == 0) o else { val c = i.head.toLower |