浏览代码

remove outdated comments

B. Petersen 2 年之前
父节点
当前提交
e642f01aa5

+ 0 - 5
deltachat-ios/Controller/WebViewViewController.swift

@@ -209,10 +209,6 @@ class WebViewViewController: UIViewController, WKNavigationDelegate {
             return
         }
 
-        // FIXME: lookupContactIdByAddress is still broken
-        // let contactId = dcContext.lookupContactIdByAddress(emailAddress)
-
-        // workaround:
         let contacts: [Int] = dcContext.getContacts(flags: DC_GCL_ADD_SELF, queryString: emailAddress)
         let index = contacts.firstIndex(where: { dcContext.getContact(id: $0).email == emailAddress }) ?? -1
         let contactId = index >= 0 ? contacts[index] : 0
@@ -286,7 +282,6 @@ extension WebViewViewController: ChatSearchDelegate {
 
 extension WebViewViewController: InputBarAccessoryViewDelegate {
     func inputBar(_ inputBar: InputBarAccessoryView, didAdaptToKeyboard height: CGFloat) {
-        // logger.debug("didAdaptToKeyboard: \(height)")
         self.webView.scrollView.contentInset.bottom = height
     }
 }

+ 0 - 3
deltachat-ios/Controller/WebxdcViewController.swift

@@ -198,7 +198,6 @@ class WebxdcViewController: WebViewViewController {
         let willBeRemoved = parent == nil
         navigationController?.interactivePopGestureRecognizer?.isEnabled = willBeRemoved
         if willBeRemoved {
-            // remove observer
             let nc = NotificationCenter.default
             if let webxdcUpdateObserver = webxdcUpdateObserver {
                 nc.removeObserver(webxdcUpdateObserver)
@@ -229,7 +228,6 @@ class WebxdcViewController: WebViewViewController {
     }
     
     override func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy) -> Void) {
-        // TODO: what about tel://
         if let url = navigationAction.request.url {
             if url.scheme == "mailto" {
                 openChatFor(url: url)
@@ -262,7 +260,6 @@ class WebxdcViewController: WebViewViewController {
     }
 
     private func loadRestrictedHtml() {
-        // TODO: compile only once
         WKContentRuleListStore.default().compileContentRuleList(
             forIdentifier: "WebxdcContentBlockingRules",
             encodedContentRuleList: blockRules) { (contentRuleList, error) in