From 2db031d71e467ee6605bb5e2c627f07c2bbc3a2c Mon Sep 17 00:00:00 2001 From: "Denis.Zharkov" Date: Thu, 11 Jan 2024 18:11:48 +0100 Subject: [PATCH] Drop unused `createDeprecatedAnnotation` ^KT-60858 Fixed --- .../kotlin/descriptors/annotations/annotationUtil.kt | 11 ----------- 1 file changed, 11 deletions(-) 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")