diff options
author | paltherr <paltherr@epfl.ch> | 2004-03-10 19:15:25 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-03-10 19:15:25 +0000 |
commit | 5412ad4a1c1598f54611a03123634fc88af03d7d (patch) | |
tree | cdbd6e4512d38541d125512a4e8512102f559fac /sources/scalac/symtab/Symbol.java | |
parent | bd9f74861ec3e664fc9e94795fd8c16b7580e1df (diff) | |
download | scala-5412ad4a1c1598f54611a03123634fc88af03d7d.tar.gz scala-5412ad4a1c1598f54611a03123634fc88af03d7d.tar.bz2 scala-5412ad4a1c1598f54611a03123634fc88af03d7d.zip |
- Removed now unused method Symbol.copyTo
Diffstat (limited to 'sources/scalac/symtab/Symbol.java')
-rw-r--r-- | sources/scalac/symtab/Symbol.java | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/sources/scalac/symtab/Symbol.java b/sources/scalac/symtab/Symbol.java index 35e52690fc..efe24a12a9 100644 --- a/sources/scalac/symtab/Symbol.java +++ b/sources/scalac/symtab/Symbol.java @@ -257,17 +257,6 @@ public abstract class Symbol implements Modifiers, Kinds { return clone; } - /** copy all fields to `sym' - */ - public void copyTo(Symbol sym) { - sym.kind = kind; - sym.pos = pos; - sym.name = name; - sym.flags = flags; - sym.owner = owner; - sym.infos = infos; - } - // Setters --------------------------------------------------------------- /** Set owner */ @@ -1528,16 +1517,6 @@ public abstract class TypeSymbol extends Symbol { constructor.pos = pos; } - /** copy all fields to `sym' - */ - public void copyTo(Symbol sym) { - super.copyTo(sym); - Symbol symconstr = ((TypeSymbol) sym).constructor; - constructor.copyTo(symconstr); - if (constructor.isInitialized()) - symconstr.setInfo(fixConstrType(symconstr.type(), sym)); - } - protected final void copyConstructorInfo(TypeSymbol other) { { Type info = primaryConstructor().info().cloneType( @@ -1712,13 +1691,6 @@ public class AbsTypeSymbol extends TypeSymbol { return other; } - /** copy all fields to `sym' - */ - public void copyTo(Symbol sym) { - super.copyTo(sym); - ((AbsTypeSymbol) sym).lobound = lobound; - } - public Type loBound() { initialize(); return lobound == null ? Global.instance.definitions.ALL_TYPE() : lobound; @@ -1847,13 +1819,6 @@ public class ClassSymbol extends TypeSymbol { return other; } - /** copy all fields to `sym' - */ - public void copyTo(Symbol sym) { - super.copyTo(sym); - if (thisSym != this) sym.setTypeOfThis(typeOfThis()); - } - /** Get module */ public Symbol module() { assert !isRoot(): this + ".module()"; |