Skip to content

Commit

Permalink
Fix Duplicated Method
Browse files Browse the repository at this point in the history
  • Loading branch information
barreeeiroo committed Aug 20, 2023
1 parent e4d1b63 commit 72bb7f5
Showing 1 changed file with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 72bb7f5

Please sign in to comment.