summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sources/scalac/util/Name.java27
1 files changed, 0 insertions, 27 deletions
diff --git a/sources/scalac/util/Name.java b/sources/scalac/util/Name.java
index 639e2b6bb8..6b765d0ce0 100644
--- a/sources/scalac/util/Name.java
+++ b/sources/scalac/util/Name.java
@@ -265,16 +265,6 @@ public final class Name {
return fromAscii(ascii, 0, ascii.length);
}
-/** replace all `from' characters with `to'
- */
- public Name replace(byte from, byte to) {
- byte[] ascii = new byte[len];
- copyAscii(ascii, 0);
- for (int i = 0; i < len; i++)
- if (ascii[i] == from) ascii[i] = to;
- return fromAscii(ascii, 0, len);
- }
-
/** returns the concatenation of this name and n
*/
public Name append(Name n) {
@@ -284,21 +274,6 @@ public final class Name {
return fromAscii(ascii, 0, ascii.length);
}
-/** returns the concatenation of all names in ns
- */
- public static Name concat(Name ns[]) {
- int len = 0;
- for (int i = 0; i < ns.length; i++)
- len = len + ns[i].len;
- byte[] ascii = new byte[len];
- len = 0;
- for (int i = 0; i < ns.length; i++) {
- ns[i].copyAscii(ascii, len);
- len = len + ns[i].len;
- }
- return fromAscii(ascii, 0, len);
- }
-
/** is this name an operator?
*/
public boolean isOperator() {
@@ -356,8 +331,6 @@ public final class Name {
}
}
- public static final int TOP_PRECEDENCE = 11;
-
/** is this operator left associative
*/
public boolean isLeftAssoc() {