Skip to content

Commit e87036a

Browse files
committed
fix: seems these workaround decls not necessary on 6.1 linux anymore?
1 parent 3776613 commit e87036a

File tree

1 file changed

+0
-53
lines changed

1 file changed

+0
-53
lines changed

Samples/SwiftAndJavaJarSampleLib/Sources/MySwiftLibrary/MySwiftLibrary.swift

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -38,51 +38,6 @@ public func globalTakeIntInt(i: Int, j: Int) {
3838
public func globalCallMeRunnable(run: () -> ()) {
3939
run()
4040
}
41-
//
42-
//public class MySwiftClass {
43-
//
44-
// public var len: Int
45-
// public var cap: Int
46-
//
47-
// public init(len: Int, cap: Int) {
48-
// self.len = len
49-
// self.cap = cap
50-
//
51-
// p("\(MySwiftClass.self).len = \(self.len)")
52-
// p("\(MySwiftClass.self).cap = \(self.cap)")
53-
// let addr = unsafeBitCast(self, to: UInt64.self)
54-
// p("initializer done, self = 0x\(String(addr, radix: 16, uppercase: true))")
55-
// }
56-
//
57-
// deinit {
58-
// let addr = unsafeBitCast(self, to: UInt64.self)
59-
// p("Deinit, self = 0x\(String(addr, radix: 16, uppercase: true))")
60-
// }
61-
//
62-
// public var counter: Int32 = 0
63-
//
64-
// public func voidMethod() {
65-
// p("")
66-
// }
67-
//
68-
// public func takeIntMethod(i: Int) {
69-
// p("i:\(i)")
70-
// }
71-
//
72-
// public func echoIntMethod(i: Int) -> Int {
73-
// p("i:\(i)")
74-
// return i
75-
// }
76-
//
77-
// public func makeIntMethod() -> Int {
78-
// p("make int -> 12")
79-
// return 12
80-
// }
81-
//
82-
// public func makeRandomIntMethod() -> Int {
83-
// return Int.random(in: 1..<256)
84-
// }
85-
//}
8641

8742
// ==== Internal helpers
8843

@@ -91,11 +46,3 @@ func p(_ msg: String, file: String = #fileID, line: UInt = #line, function: Stri
9146
fflush(stdout)
9247
}
9348

94-
#if os(Linux)
95-
// FIXME: why do we need this workaround?
96-
@_silgen_name("_objc_autoreleaseReturnValue")
97-
public func _objc_autoreleaseReturnValue(a: Any) {}
98-
99-
@_silgen_name("objc_autoreleaseReturnValue")
100-
public func objc_autoreleaseReturnValue(a: Any) {}
101-
#endif

0 commit comments

Comments
 (0)