Skip to content

Commit d930c98

Browse files
committed
Rmemove debug code
1 parent 777e2c4 commit d930c98

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

commons-macros/src/main/scala/com/avsystem/commons/macros/MacroCommons.scala

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1409,26 +1409,17 @@ trait MacroCommons extends CompatMacroCommons { bundle =>
14091409
}
14101410
}
14111411

1412-
def determineTypeParams(undetTpe: Type, detTpe: Type, typeParams: List[Symbol], debug: Boolean = false): Option[List[Type]] = {
1412+
def determineTypeParams(undetTpe: Type, detTpe: Type, typeParams: List[Symbol]): Option[List[Type]] = {
14131413
val methodName = c.freshName(TermName("m"))
14141414
val typeDefs = typeParams.map(typeSymbolToTypeDef(_, forMethod = true))
14151415

1416-
if(debug) {
1417-
q"""
1418-
def $methodName[..$typeDefs](f: ${treeForType(undetTpe)} => $UnitCls): $UnitCls = ()
1419-
$methodName((_: $detTpe) => ())
1420-
""".debug("")
1421-
}
1422-
14231416
val tree = typecheck(
14241417
q"""
14251418
def $methodName[..$typeDefs](f: ${treeForType(undetTpe)} => $UnitCls): $UnitCls = ()
14261419
$methodName((_: $detTpe) => ())
14271420
""", silent = true
14281421
)
14291422

1430-
if(debug) println(tree)
1431-
14321423
tree match {
14331424
case Block(_, Apply(TypeApply(_, args), _)) => Some(args.map(_.tpe))
14341425
case Block(_, Apply(_, _)) => Some(Nil)

0 commit comments

Comments
 (0)