diff --git a/org.eclipse.wb.core/src-gef/org/eclipse/wb/gef/core/EditPart.java b/org.eclipse.wb.core/src-gef/org/eclipse/wb/gef/core/EditPart.java index e4f13837e..77f21cffe 100644 --- a/org.eclipse.wb.core/src-gef/org/eclipse/wb/gef/core/EditPart.java +++ b/org.eclipse.wb.core/src-gef/org/eclipse/wb/gef/core/EditPart.java @@ -174,31 +174,6 @@ protected void refreshChildren() { } } - /** - * Removes a child {@link EditPart}. This method is called from - * {@link #refreshChildren()}. The following events occur in the order listed: - *
    - *
  1. deactivate() is called if the child is active - *
  2. {@link EditPart#removeNotify()} is called on the child. - *
  3. The child's parent is set to null - *
- *

- */ - protected final void removeChild(EditPart childPart) { - int index = getChildren().indexOf(childPart); - if (index == -1) { - return; - } - fireRemovingChild(childPart, index); - if (isActive()) { - childPart.deactivate(); - } - childPart.removeNotify(); - removeChildVisual(childPart); - getChildren().remove(childPart); - childPart.setParent(null); - } - /** * Convenience method for returning the {@link IEditPartViewer} for this part. */