From 2f75f20a9e345e4736199fd234dfaf8f24f8ef35 Mon Sep 17 00:00:00 2001 From: Fabian Lange Date: Wed, 23 Oct 2013 00:06:24 +0200 Subject: [PATCH] removed obsolete field "width" from VNativeButton. (#12825) The field width of VNativeButton was written when setWidth() was invoked, but it was never read anywhere. Removing it saves cpu time and memory. This field was not marked as internal and it was protected, if anybody needs it, they can easily add it to their classes. Change-Id: I9f2bb9b5426b25ba36b3414cc70d2298e515ac23 --- client/src/com/vaadin/client/ui/VNativeButton.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/client/src/com/vaadin/client/ui/VNativeButton.java b/client/src/com/vaadin/client/ui/VNativeButton.java index 67fa6f2ee3..d38e4c3374 100644 --- a/client/src/com/vaadin/client/ui/VNativeButton.java +++ b/client/src/com/vaadin/client/ui/VNativeButton.java @@ -33,8 +33,6 @@ public class VNativeButton extends Button implements ClickHandler { public static final String CLASSNAME = "v-nativebutton"; - protected String width = null; - /** For internal use only. May be removed or replaced in the future. */ public String paintableId; @@ -123,12 +121,6 @@ public class VNativeButton extends Button implements ClickHandler { } } - @Override - public void setWidth(String width) { - this.width = width; - super.setWidth(width); - } - /* * (non-Javadoc) * -- 2.39.5