mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-11-20 07:13:50 +00:00
remove deprecations
This commit is contained in:
parent
aa0e831cea
commit
50d41e35c1
@ -3,6 +3,7 @@
|
|||||||
## 0.6.0
|
## 0.6.0
|
||||||
|
|
||||||
**THIS VERSION HAS MIGRATED FROM KORLIBS KLOCK TO KOTLINX DATETIME. CAREFUL**
|
**THIS VERSION HAS MIGRATED FROM KORLIBS KLOCK TO KOTLINX DATETIME. CAREFUL**
|
||||||
|
**ALL DEPRECATION HAVE BEEN REMOVED**
|
||||||
|
|
||||||
* `Versions`
|
* `Versions`
|
||||||
* `Klock` -> `kotlinx.datetime`
|
* `Klock` -> `kotlinx.datetime`
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
package dev.inmo.micro_utils.common
|
|
||||||
|
|
||||||
@Deprecated("Redundant", ReplaceWith("coerceIn(min, max)"))
|
|
||||||
@Suppress("NOTHING_TO_INLINE")
|
|
||||||
inline fun <T : Comparable<T>> T.clamp(min: T, max: T): T = coerceIn(min, max)
|
|
@ -20,18 +20,6 @@ open class TypedSerializer<T : Any>(
|
|||||||
element("type", String.serializer().descriptor)
|
element("type", String.serializer().descriptor)
|
||||||
element("value", ContextualSerializer(kClass).descriptor)
|
element("value", ContextualSerializer(kClass).descriptor)
|
||||||
}
|
}
|
||||||
@InternalSerializationApi
|
|
||||||
@Deprecated(
|
|
||||||
"This descriptor was deprecated due to incorrect serial name. You may use it in case something require it, " +
|
|
||||||
"but it is strongly recommended to migrate onto new descriptor"
|
|
||||||
)
|
|
||||||
protected val oldDescriptor: SerialDescriptor = buildSerialDescriptor(
|
|
||||||
"TextSourceSerializer",
|
|
||||||
SerialKind.CONTEXTUAL
|
|
||||||
) {
|
|
||||||
element("type", String.serializer().descriptor)
|
|
||||||
element("value", ContextualSerializer(kClass).descriptor)
|
|
||||||
}
|
|
||||||
|
|
||||||
@ExperimentalSerializationApi
|
@ExperimentalSerializationApi
|
||||||
@InternalSerializationApi
|
@InternalSerializationApi
|
||||||
|
Loading…
Reference in New Issue
Block a user