0
0
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:
Harry 2024-06-26 09:44:22 -07:00 committed by GitHub
parent b85148cc1f
commit 72aae8c00f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}
}
}