]> source.dussan.org Git - vaadin-framework.git/commitdiff
removed ugly obsolete debug code
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 7 Jan 2009 13:56:31 +0000 (13:56 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 7 Jan 2009 13:56:31 +0000 (13:56 +0000)
svn changeset:6433/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ApplicationConnection.java

index fc3851fee921da44ad8c808554e2c799bebd1e5e..6121ca96865be9a851cb32f21f3235565423ef35 100755 (executable)
@@ -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() + "%");