Revert "Bug 513298 - FormLayout should give IAE for children with wrong
layout data"

This reverts commit 8c114e75715b38aa6740a659e9bf1a12396fea1f.

Change-Id: I15fcaa7a7cfaa37069a3f41da034952a665e4c8d
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/layout/FormLayout.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/layout/FormLayout.java
index f6026c9..cca430c 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/layout/FormLayout.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/layout/FormLayout.java
@@ -293,7 +293,6 @@
 	Control [] children = composite.getChildren ();
 	for (int i=0; i<children.length; i++) {
 		Control child = children [i];
-		checkLayoutData(child);
 		FormData data = (FormData) child.getLayoutData ();
 		if (data == null) child.setLayoutData (data = new FormData ());
 		if (flushCache) data.flushCache ();
@@ -387,11 +386,4 @@
  	string += "}";
  	return string;
 }
-
-private void checkLayoutData(Control child) {
-  Object layoutData = child.getLayoutData();
-  if (layoutData!= null  && !(layoutData instanceof FormData)) {
-      SWT.error(SWT.ERROR_INVALID_ARGUMENT, null, " " + child.getClass().getName() + " must use FormData as layout data. Currently using: " + layoutData);
-  }
-}
 }