[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:
Dmitriy Dolovov
2020-02-14 11:13:25 +07:00
parent 11e0f427ac
commit 9a8a1113db
4 changed files with 20 additions and 4 deletions
@@ -17,3 +17,8 @@ external fun externalFunction2()
inline fun inlineFunction1() {}
inline fun inlineFunction2() {}
@Deprecated
fun deprecatedFunction1() {}
@Deprecated
fun deprecatedFunction2() {}
@@ -17,3 +17,8 @@ fun externalFunction2() {}
inline fun inlineFunction1() {}
fun inlineFunction2() {}
@Deprecated
fun deprecatedFunction1() {}
@Deprecated
fun deprecatedFunction3() {}