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