remove unused func

This commit is contained in:
mcfans
2017-06-09 13:06:00 +08:00
parent 5e4d07e06e
commit 2d331b2bd0
+1 -5
View File
@@ -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)
}