Drop unused createDeprecatedAnnotation
^KT-60858 Fixed
This commit is contained in:
committed by
Space Team
parent
db27e29c08
commit
2db031d71e
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user