From 72bb7f522ca23ed8b5f225429cd58330ea34a1a4 Mon Sep 17 00:00:00 2001 From: Diego Barreiro Date: Sun, 20 Aug 2023 16:44:44 +0200 Subject: [PATCH] Fix Duplicated Method --- .../simple/components/MockComponentsUtil.java | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/appinventor/appengine/src/com/google/appinventor/client/editor/simple/components/MockComponentsUtil.java b/appinventor/appengine/src/com/google/appinventor/client/editor/simple/components/MockComponentsUtil.java index 7a6c7736fc5..3a95f84a245 100644 --- a/appinventor/appengine/src/com/google/appinventor/client/editor/simple/components/MockComponentsUtil.java +++ b/appinventor/appengine/src/com/google/appinventor/client/editor/simple/components/MockComponentsUtil.java @@ -510,28 +510,6 @@ static void setEnabled(MockComponent component, String value) { } } - /** - * Sets the border color for the given widget. - * - * @param widget widget to change border color for - * @param color new color (RGB value) - */ - static void setWidgetBorderColor(Widget widget, String color) { - if (isNoneColor(color)) { - widget.getElement().getStyle().setProperty("border-color", "transparent"); - } else { - widget.getElement().getStyle().setProperty("border-color", "#" + getHexString(color, 8)); - } - } - - static void setWidgetBorderColor(Element elem, String color) { - if (isNoneColor(color)) { - elem.getStyle().setProperty("border-color", "transparent"); - } else { - elem.getStyle().setProperty("border-color", "#" + getHexString(color, 8)); - } - } - /** * Sets the elevation for the given widget. *