From 36994fc4df7a4d697cd018fcddee785aca886d24 Mon Sep 17 00:00:00 2001 From: Philip Wedemann <22521688+hfhbd@users.noreply.github.com> Date: Mon, 15 Apr 2024 18:44:17 +0200 Subject: [PATCH] Remove the null logger (#623) --- .../com/alecstrong/sql/psi/core/SqlCoreEnvironment.kt | 9 --------- 1 file changed, 9 deletions(-) diff --git a/environment/src/main/kotlin/com/alecstrong/sql/psi/core/SqlCoreEnvironment.kt b/environment/src/main/kotlin/com/alecstrong/sql/psi/core/SqlCoreEnvironment.kt index 49e7a246..5e02981c 100644 --- a/environment/src/main/kotlin/com/alecstrong/sql/psi/core/SqlCoreEnvironment.kt +++ b/environment/src/main/kotlin/com/alecstrong/sql/psi/core/SqlCoreEnvironment.kt @@ -9,8 +9,6 @@ import com.alecstrong.sql.psi.core.psi.SqlCreateVirtualTableStmt import com.intellij.core.CoreApplicationEnvironment import com.intellij.core.CoreProjectEnvironment import com.intellij.lang.MetaLanguage -import com.intellij.openapi.diagnostic.DefaultLogger -import com.intellij.openapi.diagnostic.Logger import com.intellij.openapi.project.Project import com.intellij.openapi.roots.ContentIterator import com.intellij.openapi.roots.ProjectFileIndex @@ -39,16 +37,9 @@ import java.io.File import kotlin.reflect.KClass private class ApplicationEnvironment { - private val logger = object : DefaultLogger("") { - override fun warn(message: String?, t: Throwable?) = Unit - override fun error(message: Any?) = Unit - } - val disposable = Disposer.newDisposable() val coreApplicationEnvironment: CoreApplicationEnvironment = CoreApplicationEnvironment(disposable).apply { - Logger.setFactory { logger } - CoreApplicationEnvironment.registerApplicationExtensionPoint( MetaLanguage.EP_NAME, MetaLanguage::class.java,