File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed
Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -542,30 +542,6 @@ extension JNISwift2JavaGenerator {
542542 shouldGenerateGlobalArenaVariation = false
543543 }
544544
545- // let importedProtocolType = self.analysis.importedTypes.first { _, type in
546- // guard let parentType = importedFunc?.parentType?.asNominalTypeDeclaration else {
547- // return false
548- // }
549- // return type.swiftNominal == parentType && (parentType.kind == .protocol)
550- // }?.value
551- //
552- // if config.effectiveMemoryManagementMode.requiresGlobalArena && translatedSignature.requiresSwiftArena {
553- // if let importedProtocolType {
554- // // If this is a method from a protocol we are implementing
555- // // we must generate
556- // // the auto arena version, since that is what the wrappers from Swift
557- // // will use.
558- // let isProtocolMethodOrVariable = importedProtocolType.methods.contains {
559- // $0.name == importedFunc?.name && $0.functionSignature == importedFunc?.functionSignature
560- // }
561- // shouldGenerateGlobalArenaVariation = isProtocolMethodOrVariable
562- // } else {
563- // shouldGenerateGlobalArenaVariation = false
564- // }
565- // } else {
566- // shouldGenerateGlobalArenaVariation = false
567- // }
568-
569545 if shouldGenerateGlobalArenaVariation {
570546 if let importedFunc {
571547 printDeclDocumentation ( & printer, importedFunc)
You can’t perform that action at this time.
0 commit comments