Skip to content

Commit ebd0d6e

Browse files
committed
Dropped Linux support
1 parent 3f3a314 commit ebd0d6e

File tree

3 files changed

+0
-75
lines changed

3 files changed

+0
-75
lines changed

Sources/InterposeKit/InterposeSubclass.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ class InterposeSubclass {
7676
return nil
7777
}
7878

79-
#if !os(Linux)
8079
private func replaceGetClass(in class: AnyClass, decoy perceivedClass: AnyClass) {
81-
// crashes on linux
8280
let getClass: @convention(block) (AnyObject) -> AnyClass = { _ in
8381
perceivedClass
8482
}
@@ -101,9 +99,4 @@ class InterposeSubclass {
10199
Interpose.log("Failed to add super implementation to -[\(dynamicClass).\(selector)]: \(error)")
102100
}
103101
}
104-
#else
105-
func addSuperTrampoline(selector: Selector) { }
106-
class var supportsSuperTrampolines: Bool { return false }
107-
private func replaceGetClass(in class: AnyClass, decoy perceivedClass: AnyClass) {}
108-
#endif
109102
}

Sources/InterposeKit/LinuxCompileSupport.swift

Lines changed: 0 additions & 65 deletions
This file was deleted.

Sources/InterposeKit/Watcher.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
import Foundation
2-
3-
#if !os(Linux)
42
import MachO.dyld
5-
#endif
63

74
// MARK: Interpose Class Load Watcher
85

0 commit comments

Comments
 (0)