From daede2f03583e672f8485b29477f636055335be9 Mon Sep 17 00:00:00 2001 From: richie Date: Mon, 20 May 2019 20:19:50 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-594=20=E6=9B=B4=E6=96=B0=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E9=9C=80=E8=A6=81=E9=87=8D=E6=96=B0=E6=89=93=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/fr/design/upm/UpmBridge.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/upm/UpmBridge.java b/designer-base/src/main/java/com/fr/design/upm/UpmBridge.java index 8877631a1..6ebedd706 100644 --- a/designer-base/src/main/java/com/fr/design/upm/UpmBridge.java +++ b/designer-base/src/main/java/com/fr/design/upm/UpmBridge.java @@ -57,10 +57,8 @@ public class UpmBridge { } private JSObject window; - private Browser browser; private UpmBridge(Browser browser) { - this.browser = browser; this.window = browser.executeJavaScriptAndReturnValue("window").asObject(); } @@ -96,7 +94,6 @@ public class UpmBridge { callback.invoke(window, "success", Toolkit.i18nText("Fine-Design_Basic_Update_Plugin_Manager_Download_Success")); EventDispatcher.fire(DownloadEvent.SUCCESS, "success"); } catch (Exception e) { - e.printStackTrace(); callback.invoke(window, "error", Toolkit.i18nText("Fine-Design_Basic_Update_Plugin_Manager_Download_Error")); FineLoggerFactory.getLogger().error(e.getMessage(), e); EventDispatcher.fire(DownloadEvent.ERROR, "error"); @@ -114,11 +111,6 @@ public class UpmBridge { return ServerPreferenceConfig.getInstance().getOptimizedUPMVersion(); } - @JSBridge - public void reload() { - browser.reloadIgnoringCache(); - } - @JSBridge public String i18nText(String key) { return Toolkit.i18nText(key);