[stdlib] Remove unused kotlin.time.formatUpToDecimals

This commit is contained in:
Igor Yakovlev
2024-01-03 16:16:00 +01:00
committed by Space Team
parent 1e9bc1abc7
commit 2d08953c91
6 changed files with 0 additions and 19 deletions
@@ -27,7 +27,3 @@ internal actual fun formatToExactDecimals(value: Double, decimals: Int): String
if (rounded < 0) "-$positiveString" else positiveString
}
}
internal actual fun formatUpToDecimals(value: Double, decimals: Int): String {
return value.asDynamic().toLocaleString("en-us", json("maximumFractionDigits" to decimals)).unsafeCast<String>()
}