remove deprecations

This commit is contained in:
InsanusMokrassar 2021-10-04 16:09:01 +06:00
parent aa0e831cea
commit 50d41e35c1
3 changed files with 1 additions and 17 deletions

View File

@ -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`

View File

@ -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)

View File

@ -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