From d28e88c796b3284e078e7bb191d39005afb29629 Mon Sep 17 00:00:00 2001 From: Bartosz Rozwarski Date: Fri, 1 Sep 2023 10:23:44 +0100 Subject: [PATCH] cleanup --- .../Wallet/PushMessages/PushMessagesPresenter.swift | 10 ---------- Sources/Web3Inbox/WebView/WebViewProxy.swift | 1 - 2 files changed, 11 deletions(-) diff --git a/Example/WalletApp/PresentationLayer/Wallet/PushMessages/PushMessagesPresenter.swift b/Example/WalletApp/PresentationLayer/Wallet/PushMessages/PushMessagesPresenter.swift index 5730870a7..1c725aec6 100644 --- a/Example/WalletApp/PresentationLayer/Wallet/PushMessages/PushMessagesPresenter.swift +++ b/Example/WalletApp/PresentationLayer/Wallet/PushMessages/PushMessagesPresenter.swift @@ -14,16 +14,6 @@ final class PushMessagesPresenter: ObservableObject { defer { reloadPushMessages() } self.interactor = interactor self.router = router - setUpMessagesRefresh() - } - - private func setUpMessagesRefresh() { - Timer.publish(every: 60.0, on: .main, in: .default) - .autoconnect() - .sink { [weak self] _ in - self?.reloadPushMessages() - } - .store(in: &disposeBag) } func deletePushMessage(at indexSet: IndexSet) { diff --git a/Sources/Web3Inbox/WebView/WebViewProxy.swift b/Sources/Web3Inbox/WebView/WebViewProxy.swift index ad513ed2d..5f4612701 100644 --- a/Sources/Web3Inbox/WebView/WebViewProxy.swift +++ b/Sources/Web3Inbox/WebView/WebViewProxy.swift @@ -20,7 +20,6 @@ actor WebViewProxy { func respond(_ response: RPCResponse, _ request: RPCRequest) async throws { let body = try response.json(dateEncodingStrategy: .millisecondsSince1970) let logProperties: [String: String] = ["method": request.method, "requestId": "\(request.id!)", "response": body] - print(logProperties) logger.debug("resonding to w3i request \(request.method) with \(body)", properties: logProperties) let script = scriptFormatter.formatScript(body: body) webView.evaluateJavaScript(script, completionHandler: nil)