From 917dd73f041a39b4df45c50fc53abbf07d6d1233 Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Mon, 27 Feb 2017 14:51:22 +0100 Subject: Remove wrapArrayMethodName from defn. Note that it is never used and the same method exists in transform.TreeGen --- compiler/src/dotty/tools/dotc/core/Definitions.scala | 7 ------- 1 file changed, 7 deletions(-) (limited to 'compiler/src/dotty/tools/dotc/core/Definitions.scala') diff --git a/compiler/src/dotty/tools/dotc/core/Definitions.scala b/compiler/src/dotty/tools/dotc/core/Definitions.scala index 847177e2f..79e97becb 100644 --- a/compiler/src/dotty/tools/dotc/core/Definitions.scala +++ b/compiler/src/dotty/tools/dotc/core/Definitions.scala @@ -906,13 +906,6 @@ class Definitions { /** The type of the boxed class corresponding to primitive value type `tp`. */ def boxedType(tp: Type)(implicit ctx: Context): TypeRef = boxedTypes(scalaClassName(tp)) - def wrapArrayMethodName(elemtp: Type): TermName = { - val cls = elemtp.classSymbol - if (cls.isPrimitiveValueClass) nme.wrapXArray(cls.name) - else if (cls.derivesFrom(ObjectClass) && !cls.isPhantomClass) nme.wrapRefArray - else nme.genericWrapArray - } - type PrimitiveClassEnc = Int val ByteEnc = 2 -- cgit v1.2.3