diff options
author | Martin Odersky <odersky@gmail.com> | 2003-07-31 09:57:59 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2003-07-31 09:57:59 +0000 |
commit | 03449ed20a3cca9e8d974c7efeff6b4e01ecb66d (patch) | |
tree | db1153ac4bffac098d6d6d053f727992f1a2e4da /sources/scalac/util | |
parent | be21ca1267f48e8fd14d5e32f3c7a4d814005eef (diff) | |
download | scala-03449ed20a3cca9e8d974c7efeff6b4e01ecb66d.tar.gz scala-03449ed20a3cca9e8d974c7efeff6b4e01ecb66d.tar.bz2 scala-03449ed20a3cca9e8d974c7efeff6b4e01ecb66d.zip |
*** empty log message ***
Diffstat (limited to 'sources/scalac/util')
-rw-r--r-- | sources/scalac/util/FreshNameCreator.java | 1 | ||||
-rw-r--r-- | sources/scalac/util/Name.java | 27 |
2 files changed, 0 insertions, 28 deletions
diff --git a/sources/scalac/util/FreshNameCreator.java b/sources/scalac/util/FreshNameCreator.java index fb69ad5c33..3675f359f0 100644 --- a/sources/scalac/util/FreshNameCreator.java +++ b/sources/scalac/util/FreshNameCreator.java @@ -43,7 +43,6 @@ public class FreshNameCreator { public Name newName(Name prefixName, char separator) { Name name = newName(prefixName.toString(), separator); if (prefixName.isTypeName()) return name.toTypeName(); - else if (prefixName.isConstrName()) return name.toConstrName(); else return name; } diff --git a/sources/scalac/util/Name.java b/sources/scalac/util/Name.java index efe35a488b..988d0282b2 100644 --- a/sources/scalac/util/Name.java +++ b/sources/scalac/util/Name.java @@ -39,10 +39,6 @@ public final class Name { */ private static Name[] typeHashtable = new Name[HASH_SIZE]; -/** hashtable for finding constructor names quickly - */ - private static Name[] constrHashtable = new Name[HASH_SIZE]; - /** Constructor */ Name(int index, int len, Name[] table, int hash) { @@ -163,16 +159,6 @@ public final class Name { return n == this; } -/** is this name a type name? - */ - public boolean isConstrName() { - int h = hashValue(names, index, len) & HASH_MASK; - Name n = constrHashtable[h]; - while (n != null && n != this) - n = n.next; - return n == this; - } - /** create a term name corresponding to this name */ public Name toTermName() { @@ -199,19 +185,6 @@ public final class Name { return n; } -/** create a constructor name corresponding to this name - */ - public Name toConstrName() { - int h = hashValue(names, index, len) & HASH_MASK; - Name n = constrHashtable[h]; - while (n != null && n.index != index) - n = n.next; - if (n == null) { - n = new Name(index, len, constrHashtable, h); - } - return n; - } - /** return the string hash value of this name */ public int hashCode() { |