From adcbbec5bee8489387667a94f4a0bcdbb00bdbb1 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Mon, 5 May 2025 17:21:03 -0400 Subject: [PATCH] Removing unnecessary logs --- .../com/vitorpamplona/amethyst/ui/StringResourceCache.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/StringResourceCache.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/StringResourceCache.kt index fc9f4021e..6300f85a3 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/StringResourceCache.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/StringResourceCache.kt @@ -29,7 +29,6 @@ import androidx.compose.ui.platform.LocalConfiguration import androidx.compose.ui.res.painterResource import androidx.compose.ui.res.stringResource import androidx.lifecycle.compose.LifecycleResumeEffect -import com.vitorpamplona.amethyst.logTime /** * Cache for stringResource because it seems to be > 1ms function in some phones @@ -135,10 +134,7 @@ fun painterRes( return cached } - val loaded = - logTime("loading icon") { - painterResource(id) - } + val loaded = painterResource(id) iconCache.put(id, loaded)