mirror of
https://github.com/qinyuhang/ShadowsocksX-NG-R.git
synced 2026-10-07 11:54:11 +00:00
remove unused func
This commit is contained in:
@@ -220,11 +220,7 @@ typealias Task = (_ cancel : Bool) -> Void
|
||||
|
||||
}
|
||||
|
||||
func synchronized(lock: AnyObject, closure: () -> ()) {
|
||||
objc_sync_enter(lock)
|
||||
closure()
|
||||
objc_sync_exit(lock)
|
||||
}
|
||||
|
||||
func cancel(_ task: Task?) {
|
||||
task?(true)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user