diff --git a/core/descriptors/src/org/jetbrains/kotlin/descriptors/annotations/annotationUtil.kt b/core/descriptors/src/org/jetbrains/kotlin/descriptors/annotations/annotationUtil.kt index a4c5dd4d7f8..188fd6bb77c 100644 --- a/core/descriptors/src/org/jetbrains/kotlin/descriptors/annotations/annotationUtil.kt +++ b/core/descriptors/src/org/jetbrains/kotlin/descriptors/annotations/annotationUtil.kt @@ -58,17 +58,6 @@ fun KotlinBuiltIns.createDeprecatedAnnotation( ) } -// Temporary workaround for kotlinx-serialization-cbor compilation. -// We need some kotlinx-serialization components to be resolved to that function instead of one with default argument -// because for some time, they have a new version at compile time, but the old core in the classpath. -// Might be removed after K/N version is advanced (KT-60858 to track) -@Suppress("unused") -fun KotlinBuiltIns.createDeprecatedAnnotation( - message: String, - replaceWith: String = "", - level: String = "WARNING", -): AnnotationDescriptor = createDeprecatedAnnotation(message, replaceWith, level, forcePropagationDeprecationToOverrides = false) - private val DEPRECATED_MESSAGE_NAME = Name.identifier("message") private val DEPRECATED_REPLACE_WITH_NAME = Name.identifier("replaceWith") private val DEPRECATED_LEVEL_NAME = Name.identifier("level")