mirror of
https://github.com/signalapp/libsignal.git
synced 2024-09-19 19:42:19 +02:00
Remove SignalCoreKit dependency in libsignal
This commit is contained in:
parent
b85148cc1f
commit
72aae8c00f
@ -6,10 +6,6 @@
|
||||
import Foundation
|
||||
import SignalFfi
|
||||
|
||||
#if canImport(SignalCoreKit)
|
||||
import SignalCoreKit
|
||||
#endif
|
||||
|
||||
internal class TokioAsyncContext: NativeHandleOwner {
|
||||
convenience init() {
|
||||
var handle: OpaquePointer?
|
||||
@ -90,11 +86,7 @@ internal class TokioAsyncContext: NativeHandleOwner {
|
||||
try checkError(signal_tokio_async_context_cancel($0, id))
|
||||
}
|
||||
} catch {
|
||||
#if canImport(SignalCoreKit)
|
||||
Logger.warn("failed to cancel libsignal task \(id): \(error)")
|
||||
#else
|
||||
NSLog("failed to cancel libsignal task %ld: %@", id, "\(error)")
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user