Skip to content

Commit 2adf7de

Browse files
committed
remove comments
1 parent e91fd2b commit 2adf7de

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

Sources/JExtractSwiftLib/JNI/JNISwift2JavaGenerator+JavaBindingsPrinting.swift

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)