From e874ad9cbb295cc88899f64f39ffb0704b9a95e7 Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Mon, 25 May 2015 00:22:43 +0300 Subject: [PATCH] Remove getting stacktrace in internal mode --- .../src/org/jetbrains/kotlin/psi/JetPsiFactory.kt | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/compiler/frontend/src/org/jetbrains/kotlin/psi/JetPsiFactory.kt b/compiler/frontend/src/org/jetbrains/kotlin/psi/JetPsiFactory.kt index ab3ad4a7ded..ebc15160f7d 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/psi/JetPsiFactory.kt +++ b/compiler/frontend/src/org/jetbrains/kotlin/psi/JetPsiFactory.kt @@ -146,17 +146,9 @@ public class JetPsiFactory(private val project: Project) { public fun createFile(fileName: String, text: String): JetFile { val file = doCreateFile(fileName, text) - //TODO: KotlinInternalMode should be used here - if (ApplicationManager.getApplication()!!.isInternal()) { - val sw = StringWriter() - Exception().printStackTrace(PrintWriter(sw)) - file.doNotAnalyze = "This file was created by JetPsiFactory and should not be analyzed. It was created at:\n" + sw.toString() - } - else { - file.doNotAnalyze = "This file was created by JetPsiFactory and should not be analyzed\n" + - "Enable kotlin internal mode get more info for debugging\n" + - "Use createAnalyzableFile to create file that can be analyzed\n" - } + + file.doNotAnalyze = "This file was created by JetPsiFactory and should not be analyzed\n" + + "Use createAnalyzableFile to create file that can be analyzed\n" return file }