diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/LayoutManager.java | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/client/src/com/vaadin/client/LayoutManager.java b/client/src/com/vaadin/client/LayoutManager.java index 381aff5afa..14b155c92f 100644 --- a/client/src/com/vaadin/client/LayoutManager.java +++ b/client/src/com/vaadin/client/LayoutManager.java @@ -827,7 +827,6 @@ public class LayoutManager { * the managed layout that should be layouted */ public final void setNeedsHorizontalLayout(ManagedLayout layout) { - assert isAttached(layout); needsHorizontalLayout.add(layout.getConnectorId()); } @@ -843,21 +842,9 @@ public class LayoutManager { * the managed layout that should be layouted */ public final void setNeedsVerticalLayout(ManagedLayout layout) { - assert isAttached(layout); needsVerticalLayout.add(layout.getConnectorId()); } - private boolean isAttached(ServerConnector connector) { - while (connector != null) { - connector = connector.getParent(); - if (connector == connection.getUIConnector()) { - return true; - } - } - // Reaching null parent before reaching UI connector -> not attached - return false; - } - /** * Gets the outer height (including margins, paddings and borders) of the * given element, provided that it has been measured. These elements are |