summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2013-05-19 12:40:30 -0700
committerPaul Phillips <paulp@improving.org>2013-05-20 10:01:40 -0700
commit32169f1e04bcfa39f899b301c30f6a2870a7d3c1 (patch)
tree902851a36afaad157a6d5fe72274137366796bbf /src/compiler
parente11da18746be13420284153a49190a34c7888cde (diff)
downloadscala-32169f1e04bcfa39f899b301c30f6a2870a7d3c1.tar.gz
scala-32169f1e04bcfa39f899b301c30f6a2870a7d3c1.tar.bz2
scala-32169f1e04bcfa39f899b301c30f6a2870a7d3c1.zip
Commented out code from 2006.
Yes, 2006. Perhaps we should have a "sunset provision" which removes commented-out code after seven years. Or even slightly sooner.
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Infer.scala13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Infer.scala b/src/compiler/scala/tools/nsc/typechecker/Infer.scala
index db5b62e5ff..26e4598137 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Infer.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Infer.scala
@@ -1426,19 +1426,6 @@ trait Infer extends Checkable {
/* -- Overload Resolution ---------------------------------------------- */
-/*
- def checkNotShadowed(pos: Position, pre: Type, best: Symbol, eligible: List[Symbol]) =
- if (!phase.erasedTypes)
- for (alt <- eligible) {
- if (isProperSubClassOrObject(alt.owner, best.owner))
- error(pos,
- "erroneous reference to overloaded definition,\n"+
- "most specific definition is: "+best+best.locationString+" of type "+pre.memberType(best)+
- ",\nyet alternative definition "+alt+alt.locationString+" of type "+pre.memberType(alt)+
- "\nis defined in a subclass")
- }
-*/
-
/** Assign `tree` the symbol and type of the alternative which
* matches prototype `pt`, if it exists.
* If several alternatives match `pt`, take parameterless one.