From 95846277bb525b10ab1339488b4220b4981017cd Mon Sep 17 00:00:00 2001 From: Chad Scharf <3904944+cscharf@users.noreply.github.com> Date: Thu, 14 May 2020 17:34:43 -0400 Subject: [PATCH] Reapply removal of dead code --- src/browser/browserApi.ts | 10 ---------- src/safari/safari/SafariExtensionViewController.swift | 7 ------- 2 files changed, 17 deletions(-) diff --git a/src/browser/browserApi.ts b/src/browser/browserApi.ts index ede5779c16..a536f7a694 100644 --- a/src/browser/browserApi.ts +++ b/src/browser/browserApi.ts @@ -133,16 +133,6 @@ export class BrowserApi { } } - static getAssetUrl(path: string): Promise { - if (BrowserApi.isChromeApi) { - return Promise.resolve(chrome.extension.getURL(path)); - } else if (BrowserApi.isSafariApi) { - return SafariApp.sendMessageToApp('getAppPath'); - } else { - return Promise.resolve(null); - } - } - static messageListener(name: string, callback: (message: any, sender: any, response: any) => void) { if (BrowserApi.isChromeApi) { chrome.runtime.onMessage.addListener((msg: any, sender: any, response: any) => { diff --git a/src/safari/safari/SafariExtensionViewController.swift b/src/safari/safari/SafariExtensionViewController.swift index dba308c947..41aab17003 100644 --- a/src/safari/safari/SafariExtensionViewController.swift +++ b/src/safari/safari/SafariExtensionViewController.swift @@ -205,13 +205,6 @@ class SafariExtensionViewController: SFSafariExtensionViewController, WKScriptMe } } } - } else if command == "getAppPath" { - SFSafariExtension.getBaseURI(completionHandler: { uri in - if uri != nil { - m!.responseData = uri!.absoluteString - self.replyMessage(message: m!) - } - }) } }