Removed unused code

This commit is contained in:
dankito 2023-07-06 17:48:06 +02:00
parent 0cfa714958
commit 4330675e78
3 changed files with 0 additions and 68 deletions

View File

@ -1,39 +0,0 @@
package net.dankito.utils.multiplatform
enum class Month(val month: Int) {
January(1),
February(2),
March(3),
April(4),
May(5),
June(6),
July(7),
August(8),
September(9),
October(10),
November(11),
December(12);
companion object {
fun fromInt(monthInt: Int): Month {
return Month.values().first { it.month == monthInt }
}
}
}

View File

@ -1,21 +0,0 @@
package net.dankito.utils.multiplatform
open class ObjectReference<T>(
value: T?,
open val valueChangedListener: ((T?) -> Unit)? = null
) {
open var value: T? = value
set(value) {
field = value
valueChangedListener?.invoke(value)
}
override fun toString(): String {
return "$value"
}
}

View File

@ -1,8 +0,0 @@
package Freezer
import kotlin.native.concurrent.freeze
fun <T> freeze(obj: T): T {
return obj.freeze()
}