@@ -38,51 +38,6 @@ public func globalTakeIntInt(i: Int, j: Int) {
38
38
public func globalCallMeRunnable( run: ( ) -> ( ) ) {
39
39
run ( )
40
40
}
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
- //}
86
41
87
42
// ==== Internal helpers
88
43
@@ -91,11 +46,3 @@ func p(_ msg: String, file: String = #fileID, line: UInt = #line, function: Stri
91
46
fflush ( stdout)
92
47
}
93
48
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