diff options
author | Simon Ochsenreither <simon@ochsenreither.de> | 2012-02-20 22:38:18 +0100 |
---|---|---|
committer | Simon Ochsenreither <simon@ochsenreither.de> | 2012-02-20 22:38:18 +0100 |
commit | fa8ef34b9b952e8f354d45a02b6e1ea70e083eec (patch) | |
tree | 8e59c7cd9a6b3d503970705414b399352392f8c8 /src | |
parent | a6a9684f5ba5df146be1f24bd170e97f0b2208ce (diff) | |
download | scala-fa8ef34b9b952e8f354d45a02b6e1ea70e083eec.tar.gz scala-fa8ef34b9b952e8f354d45a02b6e1ea70e083eec.tar.bz2 scala-fa8ef34b9b952e8f354d45a02b6e1ea70e083eec.zip |
Removed dead code in RefChecks.
Closes SI-5034.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/RefChecks.scala | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala index 35db38ae77..92e9f54190 100644 --- a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala +++ b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala @@ -1451,26 +1451,6 @@ abstract class RefChecks extends InfoTransform with reflect.internal.transform.R transform(qual) - case Apply(Select(New(tpt), name), args) - if (tpt.tpe.typeSymbol == ArrayClass && args.length >= 2) => - unit.deprecationWarning(tree.pos, - "new Array(...) with multiple dimensions has been deprecated; use Array.ofDim(...) instead") - val manif = { - var etpe = tpt.tpe - for (_ <- args) { etpe = etpe.typeArgs.headOption.getOrElse(NoType) } - if (etpe == NoType) { - unit.error(tree.pos, "too many dimensions for array creation") - Literal(Constant(null)) - } else { - localTyper.getManifestTree(tree, etpe, false) - } - } - val newResult = localTyper.typedPos(tree.pos) { - new ApplyToImplicitArgs(gen.mkMethodCall(ArrayModule, nme.ofDim, args), List(manif)) - } - currentApplication = tree - newResult - case Apply(fn, args) => checkSensible(tree.pos, fn, args) currentApplication = tree |