diff options
-rw-r--r-- | src/reflect/scala/reflect/internal/Symbols.scala | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/reflect/scala/reflect/internal/Symbols.scala b/src/reflect/scala/reflect/internal/Symbols.scala index 9a4b272d6c..53a236fa3c 100644 --- a/src/reflect/scala/reflect/internal/Symbols.scala +++ b/src/reflect/scala/reflect/internal/Symbols.scala @@ -45,24 +45,6 @@ trait Symbols extends api.Symbols { self: SymbolTable => m } - /** The deepest symbol which appears in the owner chains of all - * the given symbols. - */ - def commonSymbolOwner(syms: List[Symbol]): Symbol = { - def loop(owner: Symbol, rest: List[Symbol]): Symbol = rest match { - case Nil => owner - case x :: xs if x.ownerChain contains owner => loop(owner, xs) - case x :: xs if owner.ownerChain contains x => loop(x, xs) - case x :: xs => - x.ownerChain find (owner.ownerChain contains _) match { - case Some(common) => loop(common, xs) - case _ => NoSymbol - } - } - if (syms.isEmpty || (syms contains NoSymbol)) NoSymbol - else loop(syms.head.owner, syms.tail) - } - /** Create a new free term. Its owner is NoSymbol. */ def newFreeTermSymbol(name: TermName, value: => Any, flags: Long = 0L, origin: String): FreeTermSymbol = |