From a2c1d2ae22890570322c8c101174527290adceb6 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sat, 7 Nov 2015 15:04:11 +0100 Subject: Standardize requiredMethod calls Remve versions in Symbols, always go through version in Denotations. Avoids having two equivalent ways to do the same thing. --- src/dotty/tools/dotc/core/Symbols.scala | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/dotty/tools/dotc/core/Symbols.scala') diff --git a/src/dotty/tools/dotc/core/Symbols.scala b/src/dotty/tools/dotc/core/Symbols.scala index 7c9df525c..e33f9651e 100644 --- a/src/dotty/tools/dotc/core/Symbols.scala +++ b/src/dotty/tools/dotc/core/Symbols.scala @@ -356,14 +356,6 @@ trait Symbols { this: Context => base.staticRef(path.toTermName).requiredSymbol(_ is Module).asTerm def requiredModuleRef(path: PreName): TermRef = requiredModule(path).termRef - - def requiredMethod(pre: TypeRef, name: PreName): TermSymbol = // ### replace with method in Denotations? - pre.member(name.toTermName).requiredSymbol(_ is Method).asTerm - def requiredMethod(pre: TermRef, name: PreName): TermSymbol = - requiredMethod(pre.symbol.moduleClass.typeRef, name) - - def requiredMethodRef(pre: TypeRef, name: PreName): TermRef = requiredMethod(pre, name).termRef - def requiredMethodRef(pre: TermRef, name: PreName): TermRef = requiredMethod(pre, name).termRef } object Symbols { -- cgit v1.2.3