From: Matti Tahvonen Date: Wed, 7 Jan 2009 13:56:31 +0000 (+0000) Subject: removed ugly obsolete debug code X-Git-Tag: 6.7.0.beta1~3407 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=881af79989a20db50401ff3a6c7640eedb7cf100;p=vaadin-framework.git removed ugly obsolete debug code svn changeset:6433/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ApplicationConnection.java b/src/com/itmill/toolkit/terminal/gwt/client/ApplicationConnection.java index fc3851fee9..6121ca9686 100755 --- a/src/com/itmill/toolkit/terminal/gwt/client/ApplicationConnection.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ApplicationConnection.java @@ -1204,8 +1204,6 @@ public class ApplicationConnection { * @return true if the child has a relative size */ public boolean handleComponentRelativeSize(Widget child) { - final boolean debugSizes = false; - Widget widget = child; FloatSize relativeSize = getRelativeSize(child); if (relativeSize == null) { @@ -1257,25 +1255,6 @@ public class ApplicationConnection { height = 0; } - if (debugSizes) { - getConsole() - .log( - "Widget " - + Util.getSimpleName(widget) - + "/" - + widget.hashCode() - + " relative height " - + relativeSize.getHeight() - + "% of " - + renderSpace.getHeight() - + "px (reported by " - - + Util.getSimpleName(parent) - + "/" - + (parent == null ? "?" : parent - .hashCode()) + ") : " - + height + "px"); - } widget.setHeight(height + "px"); } else { widget.setHeight(relativeSize.getHeight() + "%"); @@ -1316,24 +1295,6 @@ public class ApplicationConnection { width = 0; } - if (debugSizes) { - getConsole() - .log( - "Widget " - + Util.getSimpleName(widget) - + "/" - + widget.hashCode() - + " relative width " - + relativeSize.getWidth() - + "% of " - + renderSpace.getWidth() - + "px (reported by " - + Util.getSimpleName(parent) - + "/" - + (parent == null ? "?" : parent - .hashCode()) + ") : " - + width + "px"); - } widget.setWidth(width + "px"); } else { widget.setWidth(relativeSize.getWidth() + "%");