summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRocky Madden <git@rockymadden.com>2012-11-21 09:12:20 -0700
committerRocky Madden <git@rockymadden.com>2012-11-21 09:12:20 -0700
commit1b4e6c596fef794e1fd8ad8d150eade4908bf34d (patch)
tree9612772a66bab4822f754f17814617718484597c /core
parent7b63d94dbf2336574ee92f387e2649f5f17193ab (diff)
downloadstringmetric-1b4e6c596fef794e1fd8ad8d150eade4908bf34d.tar.gz
stringmetric-1b4e6c596fef794e1fd8ad8d150eade4908bf34d.tar.bz2
stringmetric-1b4e6c596fef794e1fd8ad8d150eade4908bf34d.zip
Removed unneeded requires.
Diffstat (limited to 'core')
-rwxr-xr-xcore/source/core/scala/org/hashtree/stringmetric/phonetic/RefinedSoundexAlgorithm.scala2
-rwxr-xr-xcore/source/core/scala/org/hashtree/stringmetric/phonetic/SoundexAlgorithm.scala2
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