Skip to content

Commit c2091ec

Browse files
committed
Remove inline modifier
Btw, inline creates an unused bool variable, valued false.
1 parent 9ff3b3e commit c2091ec

File tree

1 file changed

+6
-6
lines changed
  • core/src/main/kotlin/io/github/rothes/esu/core/util/extension/math

1 file changed

+6
-6
lines changed

core/src/main/kotlin/io/github/rothes/esu/core/util/extension/math/Extensions.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ package io.github.rothes.esu.core.util.extension.math
44

55
import kotlin.math.floor
66

7-
inline fun Int.square(): Int = this * this
8-
inline fun Long.square(): Long = this * this
9-
inline fun Float.square(): Float = this * this
10-
inline fun Double.square(): Double = this * this
7+
fun Int.square(): Int = this * this
8+
fun Long.square(): Long = this * this
9+
fun Float.square(): Float = this * this
10+
fun Double.square(): Double = this * this
1111

12-
inline fun Float.floorI(): Int = floor(this.toDouble()).toInt()
13-
inline fun Double.floorI(): Int = floor(this).toInt()
12+
fun Float.floorI(): Int = floor(this.toDouble()).toInt()
13+
fun Double.floorI(): Int = floor(this).toInt()

0 commit comments

Comments
 (0)