diff options
author | paltherr <paltherr@epfl.ch> | 2004-03-12 22:43:31 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-03-12 22:43:31 +0000 |
commit | 72523cc2535828089668029c9a11ca3277f5e11f (patch) | |
tree | 1a1fb48aba1c8559d780f55b998e9986fa1f46e8 /sources | |
parent | 6c9e15bea04439165712c876dda23a3a9a74f3b5 (diff) | |
download | scala-72523cc2535828089668029c9a11ca3277f5e11f.tar.gz scala-72523cc2535828089668029c9a11ca3277f5e11f.tar.bz2 scala-72523cc2535828089668029c9a11ca3277f5e11f.zip |
- Removed unused methods
Diffstat (limited to 'sources')
-rw-r--r-- | sources/scalac/util/Name.java | 27 |
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() { |