From 84b8e9d9c1a2d861e5b8fba6696469359b09706b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Leif=20=C3=85strand?= Date: Wed, 8 Feb 2012 16:42:37 +0200 Subject: [PATCH] Remove unused ApplicationConnection.updateComponentSize (#8313) --- .../gwt/client/ApplicationConnection.java | 33 ------------------- 1 file changed, 33 deletions(-) diff --git a/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java b/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java index 9408879b35..f438e27f78 100644 --- a/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java +++ b/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java @@ -19,7 +19,6 @@ import com.google.gwt.core.client.JsArray; import com.google.gwt.core.client.JsArrayString; import com.google.gwt.core.client.Scheduler; import com.google.gwt.core.client.Scheduler.ScheduledCommand; -import com.google.gwt.dom.client.Style; import com.google.gwt.http.client.Request; import com.google.gwt.http.client.RequestBuilder; import com.google.gwt.http.client.RequestCallback; @@ -1572,38 +1571,6 @@ public class ApplicationConnection { return result.toString(); } - public void updateComponentSize(VPaintableWidget paintable, UIDL uidl) { - String w = uidl.hasAttribute("width") ? uidl - .getStringAttribute("width") : ""; - - String h = uidl.hasAttribute("height") ? uidl - .getStringAttribute("height") : ""; - - Widget component = paintableMap.getWidget(paintable); - - Style style = component.getElement().getStyle(); - - // Dirty if either dimension changed between relative and non-relative - if (w.endsWith("%") != style.getWidth().endsWith("%") - || h.endsWith("%") != style.getHeight().endsWith("%")) { - MeasureManager.MeasuredSize measuredSize = paintable - .getMeasuredSize(); - if (measuredSize != null) { - measuredSize.setDirty(true); - } - } - - // Set defined sizes - component.setHeight(h); - component.setWidth(w); - } - - /** - * Traverses recursively child widgets until ContainerResizedListener child - * widget is found. They will delegate it further if needed. - * - * @param container - */ private boolean runningLayout = false; /** -- 2.39.5