Skip to content

Commit 1b5a2ff

Browse files
committed
Remove benchmarking output
1 parent 8595d95 commit 1b5a2ff

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

compiler/src/dotty/tools/dotc/transform/init/Semantic.scala

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,15 +1101,12 @@ object Semantic:
11011101
*
11021102
* The class to be checked must be an instantiable concrete class.
11031103
*/
1104-
private def checkClass(classSym: ClassSymbol)(using Cache.Data, Context): Int =
1104+
private def checkClass(classSym: ClassSymbol)(using Cache.Data, Context): Unit =
11051105
val thisRef = ThisRef(classSym)
11061106
val tpl = classSym.defTree.asInstanceOf[TypeDef].rhs.asInstanceOf[Template]
11071107

1108-
var accum = 0
1109-
11101108
@tailrec
11111109
def iterate(): Unit = {
1112-
accum += 1
11131110
given Promoted = Promoted.empty(classSym)
11141111
given Trace = Trace.empty.add(classSym.defTree)
11151112
given reporter: Reporter.BufferedReporter = new Reporter.BufferedReporter
@@ -1132,19 +1129,15 @@ object Semantic:
11321129
}
11331130

11341131
iterate()
1135-
1136-
accum - 1
11371132
end checkClass
11381133

11391134
/**
11401135
* Check the specified concrete classes
11411136
*/
11421137
def checkClasses(classes: List[ClassSymbol])(using Context): Unit =
1143-
var total = 0
11441138
given Cache.Data()
11451139
for classSym <- classes if isConcreteClass(classSym) do
11461140
total += checkClass(classSym)
1147-
System.err.nn.println(total)
11481141

11491142
// ----- Semantic definition --------------------------------
11501143
type ArgInfo = TraceValue[Value]

0 commit comments

Comments
 (0)