Fix binary compatibility with Objective-C platform libraries

by removing obsolete hack.
This commit is contained in:
Svyatoslav Scherbina
2019-03-22 16:55:26 +03:00
committed by SvyatoslavScherbina
parent 937bf5bcbc
commit 9cc6000237
@@ -105,19 +105,6 @@ object KonanMangler : KotlinManglerImpl() {
if ((this@platformSpecificFunctionName as? IrSimpleFunction)?.correspondingProperty != null) {
append("#Accessor")
}
// We happen to have the clashing combinations such as
//@ObjCMethod("issueChallengeToPlayers:message:", "objcKniBridge1165")
//external fun GKScore.issueChallengeToPlayers(playerIDs: List<*>?, message: String?): Unit
//@ObjCMethod("issueChallengeToPlayers:message:", "objcKniBridge1172")
//external fun GKScore.issueChallengeToPlayers(playerIDs: List<*>?, message: String?): Unit
// So disambiguate by the name of the bridge for now.
// TODO: idealy we'd never generate such identical declarations.
if (this@platformSpecificFunctionName is IrSimpleFunction && this@platformSpecificFunctionName.hasObjCMethodAnnotation()) {
this@platformSpecificFunctionName.objCMethodArgValue("selector")?.let { append("#$it") }
this@platformSpecificFunctionName.objCMethodArgValue("bridge")?.let { append("#$it") }
}
}
}
return null