From 4f5c2e96111c2ff335c42dd3546810114f5844f3 Mon Sep 17 00:00:00 2001 From: YuKongA <70465933+YuKongA@users.noreply.github.com> Date: Tue, 19 Nov 2024 09:40:43 +0800 Subject: [PATCH] app: Remove useless println --- composeApp/src/commonMain/kotlin/misc/AppUtils.kt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/composeApp/src/commonMain/kotlin/misc/AppUtils.kt b/composeApp/src/commonMain/kotlin/misc/AppUtils.kt index d188ca2..0022f86 100644 --- a/composeApp/src/commonMain/kotlin/misc/AppUtils.kt +++ b/composeApp/src/commonMain/kotlin/misc/AppUtils.kt @@ -101,13 +101,9 @@ fun updateRomInfo( } if (recoveryRomInfo.currentRom?.bigversion != null) { - - println(recoveryRomInfo.currentRom) - println(recoveryRomInfo.latestRom) val curRomDownload = if (recoveryRomInfo.currentRom.md5 != recoveryRomInfo.latestRom?.md5) { val romInfoCurrent = getRecoveryRomInfo("", codeNameExt, regionCode, systemVersionExt, androidVersion.value, isLogin) val recoveryRomInfoCurrent = json.decodeFromString(romInfoCurrent) - println(recoveryRomInfoCurrent) if (recoveryRomInfoCurrent.currentRom != null) { noUltimateLink = false downloadUrl(recoveryRomInfoCurrent.currentRom.version!!, recoveryRomInfoCurrent.latestRom?.filename!!) @@ -186,9 +182,7 @@ fun handleRomInfo( ) { if (romInfo?.bigversion != null) { val log = StringBuilder() - if (romInfo.changelog != null) { - romInfo.changelog.forEach { log.append(it.key).append("\n").append(it.value.txt.joinToString("\n")).append("\n\n") } - } + romInfo.changelog?.forEach { log.append(it.key).append("\n").append(it.value.txt.joinToString("\n")).append("\n\n") } val changelogGroups = log.toString().trimEnd().split("\n\n") val changelog = changelogGroups.map { it.split("\n").drop(1).joinToString("\n") } val iconNames = changelogGroups.map { it.split("\n").first() }