Revert "Bug 513180 - GridLayout should give IAE instead of CCE if wrong
layout data is used"

This reverts commit c02edb84db60f1a24a123b065dcda3dcf630785d.

Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/layout/GridLayout.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/layout/GridLayout.java
index ae624f7..c47cefa 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/layout/GridLayout.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/layout/GridLayout.java
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2000, 2017 IBM Corporation and others.
+ * Copyright (c) 2000, 2011 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
@@ -7,7 +7,6 @@
  *
  * Contributors:
  *     IBM Corporation - initial API and implementation
- *     Lars Vogel <Lars.Vogel@vogella.com> - Bug 513180
  *******************************************************************************/
 package org.eclipse.swt.layout;
 
@@ -206,11 +205,7 @@
 	int count = 0;
 	for (int i=0; i<children.length; i++) {
 		Control control = children [i];
-		Object o = control.getLayoutData ();
-		if (o != null && !(o instanceof GridData)) {
-			SWT.error(SWT.ERROR_INVALID_ARGUMENT, null, " " + control.getClass().getName() + " must use GridData as layout data. Currently using: " + o);
-		}
-		GridData data = (GridData) o;
+		GridData data = (GridData) control.getLayoutData ();
 		if (data == null || !data.exclude) {
 			children [count++] = children [i];
 		}