File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -541,16 +541,6 @@ extension NTLWebView: WKScriptMessageHandler {
541
541
}
542
542
}
543
543
544
- private func handleCallbackResponse( callbackStub: String , data: JSONValue ? ) {
545
- guard let callbackId = Int ( callbackStub) ,
546
- let completion = pendingCallbacks. removeValue ( forKey: callbackId) else {
547
- debugLog ( " No pending callback found for stub: \( callbackStub) " )
548
- return
549
- }
550
-
551
- completion ( . success( data) )
552
- }
553
-
554
544
internal func handleReturnValueFromJS( _ param: JSONValue ) {
555
545
guard case let . dictionary( dictionary) = param, let callbackId = dictionary [ " id " ] ? . numberValue
556
546
else { return }
@@ -559,8 +549,6 @@ extension NTLWebView: WKScriptMessageHandler {
559
549
let complete = dictionary [ " complete " ] ? . boolValue ?? true
560
550
let error = dictionary [ " error " ]
561
551
562
-
563
-
564
552
if let completion = pendingCallbacks [ callbackIdInt] {
565
553
if complete {
566
554
pendingCallbacks. removeValue ( forKey: callbackIdInt)
You can’t perform that action at this time.
0 commit comments