summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-11-04 13:04:33 -0800
committerPaul Phillips <paulp@improving.org>2012-11-04 13:04:33 -0800
commitc04a4edcac9e6ecf653159942394a82d579f1f88 (patch)
tree4096cf13885fa6d3da846ca8daff27c95a046cd2 /src
parent9809721f0bab937029984aa97496d56db08ff61f (diff)
downloadscala-c04a4edcac9e6ecf653159942394a82d579f1f88.tar.gz
scala-c04a4edcac9e6ecf653159942394a82d579f1f88.tar.bz2
scala-c04a4edcac9e6ecf653159942394a82d579f1f88.zip
Revert "Convenience method commonSymbolOwner."
I'm reverting 14704da1b8 because it isn't yet used anywhere, but leaving it in the history because I or someone is going to put it to work.
Diffstat (limited to 'src')
-rw-r--r--src/reflect/scala/reflect/internal/Symbols.scala18
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 =