From 185f0da2774ff912663113f5856a1afdb558b3d8 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Sat, 23 Nov 2024 22:39:29 +0000 Subject: [PATCH] i18n: Remove dead code that should've been detected by the linter --- .../kotlin/dev/kordex/core/i18n/ResourceBundleTranslations.kt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/kord-extensions/src/main/kotlin/dev/kordex/core/i18n/ResourceBundleTranslations.kt b/kord-extensions/src/main/kotlin/dev/kordex/core/i18n/ResourceBundleTranslations.kt index 72da17e421..87295ae384 100644 --- a/kord-extensions/src/main/kotlin/dev/kordex/core/i18n/ResourceBundleTranslations.kt +++ b/kord-extensions/src/main/kotlin/dev/kordex/core/i18n/ResourceBundleTranslations.kt @@ -255,10 +255,6 @@ public open class ResourceBundleTranslations( }.build() .formatToString(replacements) } - - val formatter = MessageFormat(string, locale) - - return formatter.format(replacements) } private fun ResourceBundle.getStringOrNull(key: String): String? {