Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
Refactor: removed roundToTwoDecimalPlaces
Browse files Browse the repository at this point in the history
  • Loading branch information
CreativeCodeCat committed Nov 21, 2024
1 parent e2a54ed commit 4b145ae
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ import com.github.droidworksstudio.mlauncher.style.CORNER_RADIUS
import com.github.droidworksstudio.mlauncher.style.SETTINGS_PADDING
import com.github.droidworksstudio.mlauncher.style.SettingsTheme
import com.smarttoolfactory.slider.*
import java.math.BigDecimal
import java.math.RoundingMode

object SettingsComposable {

Expand Down Expand Up @@ -675,11 +673,6 @@ object SettingsComposable {
}
}


private fun Float.roundToTwoDecimalPlaces(): Float {
return BigDecimal(this.toDouble()).setScale(2, RoundingMode.HALF_EVEN).toFloat()
}

@Composable
private fun SettingsSliderSelector(
number: MutableState<Int>,
Expand Down

0 comments on commit 4b145ae

Please sign in to comment.