From 20bdbca16fc2c278b258a7742ea58b4ccbf78b60 Mon Sep 17 00:00:00 2001 From: Yahor Urbanovich Date: Tue, 24 Feb 2026 18:59:02 +0300 Subject: [PATCH] Remove logging from LucideViewModel --- .../ui/screen/webimport/lucide/LucideViewModel.kt | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/ui/screen/webimport/lucide/LucideViewModel.kt b/tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/ui/screen/webimport/lucide/LucideViewModel.kt index 85a968fed..d7d05a556 100644 --- a/tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/ui/screen/webimport/lucide/LucideViewModel.kt +++ b/tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/ui/screen/webimport/lucide/LucideViewModel.kt @@ -7,7 +7,6 @@ import com.composegears.leviathan.compose.inject import com.composegears.tiamat.navigation.MutableSavedState import com.composegears.tiamat.navigation.asStateFlow import com.composegears.tiamat.navigation.recordOf -import com.intellij.openapi.diagnostic.Logger import io.github.composegears.valkyrie.parser.unified.util.IconNameFormatter import io.github.composegears.valkyrie.sdk.core.extensions.safeAs import io.github.composegears.valkyrie.ui.screen.webimport.common.model.FontByteArray @@ -43,10 +42,6 @@ class LucideViewModel(savedState: MutableSavedState) : ViewModel() { private var downloadJob: Job? = null private var fontLoadJob: Job? = null - companion object { - private val LOG = Logger.getInstance(LucideViewModel::class.java) - } - init { when (val initialState = lucideRecord.value) { is LucideState.Success if initialState.fontByteArray == null -> downloadFont() @@ -72,7 +67,6 @@ class LucideViewModel(savedState: MutableSavedState) : ViewModel() { ) downloadFont() }.onFailure { error -> - LOG.error("Error loading Lucide icons", error) lucideRecord.value = LucideState.Error("Error loading Lucide icons: ${error.message}") } } @@ -88,8 +82,6 @@ class LucideViewModel(savedState: MutableSavedState) : ViewModel() { val bytes = lucideUseCase.loadFontBytes() fontCache = bytes updateSuccess { it.copy(fontByteArray = bytes) } - }.onFailure { error -> - LOG.error("Error loading Lucide font", error) } } else { updateSuccess { it.copy(fontByteArray = cachedFont) } @@ -111,8 +103,6 @@ class LucideViewModel(savedState: MutableSavedState) : ViewModel() { name = IconNameFormatter.format(icon.displayName), ), ) - }.onFailure { error -> - LOG.error("Failed to download icon '${icon.name}'", error) } } }