diff options
author | Rocky Madden <git@rockymadden.com> | 2012-11-21 09:12:20 -0700 |
---|---|---|
committer | Rocky Madden <git@rockymadden.com> | 2012-11-21 09:12:20 -0700 |
commit | 1b4e6c596fef794e1fd8ad8d150eade4908bf34d (patch) | |
tree | 9612772a66bab4822f754f17814617718484597c | |
parent | 7b63d94dbf2336574ee92f387e2649f5f17193ab (diff) | |
download | stringmetric-1b4e6c596fef794e1fd8ad8d150eade4908bf34d.tar.gz stringmetric-1b4e6c596fef794e1fd8ad8d150eade4908bf34d.tar.bz2 stringmetric-1b4e6c596fef794e1fd8ad8d150eade4908bf34d.zip |
Removed unneeded requires.
-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 |