summaryrefslogtreecommitdiff
path: root/sources/scalac/util
diff options
context:
space:
mode:
Diffstat (limited to 'sources/scalac/util')
-rw-r--r--sources/scalac/util/FreshNameCreator.java1
-rw-r--r--sources/scalac/util/Name.java27
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() {