@@ -530,18 +530,6 @@ object Symbols {
530530 /** The current name of this symbol */
531531 final def name (implicit ctx : Context ): ThisName = denot.name.asInstanceOf [ThisName ]
532532
533- def isHigherOrderTypeParameter (implicit ctx : Context ): Boolean = this .maybeOwner.isTypeParameterOrSkolem
534- def isTypeParameterOrSkolem (implicit ctx : Context ): Boolean = this .isTypeParam
535- def enclClassChain (implicit ctx : Context ): List [Symbol ] = this .maybeOwner.enclClassChain
536- final def isDerivedValueClass (implicit ctx : Context ): Boolean =
537- isClass && ! denot.is(Flags .Package ) && ! denot.is(Flags .Trait ) &&
538- ! ctx.phase.erasedTypes && denot.info.firstParent.typeSymbol == defn.AnyValClass && ! denot.isPrimitiveValueClass
539-
540- /** If this is a derived value class, return its unbox method
541- * or NoSymbol if it does not exist.
542- */
543- def derivedValueClassUnbox (implicit ctx : Context ): Symbol = NoSymbol
544-
545533 /** The source or class file from which this class or
546534 * the class containing this symbol was generated, null if not applicable.
547535 * Overridden in ClassSymbol
@@ -648,30 +636,17 @@ object Symbols {
648636 denot.asInstanceOf [ClassDenotation ]
649637
650638 override protected def prefixString = " ClassSymbol"
651-
652- override def enclClassChain (implicit ctx : Context ): List [Symbol ] =
653- if (this .is(Flags .PackageClass )) Nil
654- else this :: denot.owner.enclClassChain
655-
656- override def derivedValueClassUnbox (implicit ctx : Context ): Symbol =
657- // (info.decl(nme.unbox)) orElse uncomment once we accept unbox methods
658- (denot.info.decls.find(_.denot.is(Flags .ParamAccessor | Flags .Method )))
659-
660639 }
661640
662641 class ErrorSymbol (val underlying : Symbol , msg : => String )(implicit ctx : Context ) extends Symbol (NoCoord , ctx.nextId) {
663642 type ThisName = underlying.ThisName
664643 denot = underlying.denot
665-
666- override def enclClassChain (implicit ctx : Context ): List [Symbol ] = Nil
667644 }
668645
669646 @ sharable object NoSymbol extends Symbol (NoCoord , 0 ) {
670647 denot = NoDenotation
671648 override def associatedFile (implicit ctx : Context ): AbstractFile = NoSource .file
672649 override def recomputeDenot (lastd : SymDenotation )(implicit ctx : Context ): SymDenotation = NoDenotation
673-
674- override def enclClassChain (implicit ctx : Context ): List [Symbol ] = Nil
675650 }
676651
677652 implicit class Copier [N <: Name ](sym : Symbol { type ThisName = N })(implicit ctx : Context ) {
0 commit comments