[Commonizer] Don't commonize deprecated functions
1. All functions marked with @Deprecated from Kotlin/Native platform libraries have DeprecationLevel.ERROR, and therefore practically can not be used by a developer in their code. So, it does not make sence to keep such declarations in commonized libraries. 2. Commonization of such functions would also require commonization of annotations with nested annotations as const values (ex: @Deprecated(level = DeprecationLevel.ERROR), where both @Deprecated and DeprecationLevel are annotation classes). This is not implemented yet.
This commit is contained in:
+5
@@ -17,3 +17,8 @@ external fun externalFunction2()
|
||||
|
||||
inline fun inlineFunction1() {}
|
||||
inline fun inlineFunction2() {}
|
||||
|
||||
@Deprecated
|
||||
fun deprecatedFunction1() {}
|
||||
@Deprecated
|
||||
fun deprecatedFunction2() {}
|
||||
|
||||
+5
@@ -17,3 +17,8 @@ fun externalFunction2() {}
|
||||
|
||||
inline fun inlineFunction1() {}
|
||||
fun inlineFunction2() {}
|
||||
|
||||
@Deprecated
|
||||
fun deprecatedFunction1() {}
|
||||
@Deprecated
|
||||
fun deprecatedFunction3() {}
|
||||
|
||||
Reference in New Issue
Block a user