Skip to content

Commit bb7ff6b

Browse files
committed
Remove unused functions
1 parent 6c25f50 commit bb7ff6b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

common/src/main/kotlin/com/lambda/util/math/MathUtils.kt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,6 @@ object MathUtils {
5151
return typeConvert(scaled.toDouble())
5252
}
5353

54-
private fun Double.roundToPlaces(places: Int) =
55-
BigDecimal(this).setScale(places, RoundingMode.HALF_EVEN).toDouble()
56-
57-
private val Double.decimals: Int
58-
get() = BigDecimal.valueOf(this).scale()
59-
6054
fun <T : Number> T.typeConvert(valueIn: Double): T {
6155
@Suppress("UNCHECKED_CAST")
6256
return when (this) {

0 commit comments

Comments
 (0)