From d0dd0d27952ed7f8f62215de7c030d5b8a7a27e3 Mon Sep 17 00:00:00 2001 From: Ilya Goncharov Date: Mon, 18 Nov 2024 14:18:06 +0100 Subject: [PATCH] Remove time measure --- .../compiler/components/KotlinToJSTranslator.kt | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/main/kotlin/com/compiler/server/compiler/components/KotlinToJSTranslator.kt b/src/main/kotlin/com/compiler/server/compiler/components/KotlinToJSTranslator.kt index f4025da2..23ff7de9 100644 --- a/src/main/kotlin/com/compiler/server/compiler/components/KotlinToJSTranslator.kt +++ b/src/main/kotlin/com/compiler/server/compiler/components/KotlinToJSTranslator.kt @@ -11,7 +11,6 @@ import java.nio.file.Path import kotlin.io.path.div import kotlin.io.path.readBytes import kotlin.io.path.readText -import kotlin.time.measureTime @Service class KotlinToJSTranslator( @@ -197,15 +196,9 @@ class KotlinToJSTranslator( } } - val a: CompilationResult - - val time = measureTime { - a = cacheDir?.let { dir -> - compileAction(dir.toPath()) - } ?: compileAction(null) - } - println("TIME: $time") - a + cacheDir?.let { dir -> + compileAction(dir.toPath()) + } ?: compileAction(null) } } }