Removes any present overlay from the element and it's children.<p>

@param element the element
344406
public static void removeDisablingOverlay(Element element) {

        List<Element> overlays = CmsDomUtil.getElementsByClass(
            I_CmsLayoutBundle.INSTANCE.generalCss().disablingOverlay(),
            Tag.div,
            element);
        if (overlays == null) {
            return;
        }
        for (Element overlay : overlays) {
            overlay.getParentElement().getStyle().clearPosition();
            overlay.removeFromParent();
        }
        element.removeClassName(I_CmsLayoutBundle.INSTANCE.generalCss().hideOverlay());
    }
1081541
public GridCellElement<P> removeElement(P element) {
		final GridCellElement<P> elt = remove(element);
		if (elt != null) {
			if (elt.removeCellLink(this)) {
				--this.referenceElementCount;
			}
		}
		return elt;
	}
36154
public void removeChildren() {
        for (int i = children.size() - 1; i >= 0; i--) {
            removeChild(children.get(i), true);
        }
    }
86150
public static void showOverlay(Element element, boolean show) {

        if (show) {
            element.removeClassName(I_CmsLayoutBundle.INSTANCE.generalCss().hideOverlay());
        } else {
            element.addClassName(I_CmsLayoutBundle.INSTANCE.generalCss().hideOverlay());
        }
    }
175532
@Override
    protected void afterRemoveChild(ElementBase child) {
        if (child == activePane) {
            setActivePane((ElementTreePane) getFirstChild());
        }
        super.afterRemoveChild(child);
    }
1163990
private void clearDrag() {

        CmsDomUtil.removeDisablingOverlay(getElement());
        m_elementOptionBar.getElement().removeClassName(
            org.opencms.gwt.client.ui.css.I_CmsLayoutBundle.INSTANCE.stateCss().cmsHovering());
        getElement().getStyle().clearOpacity();
        getElement().getStyle().clearDisplay();
        updateOptionBarPosition();
        if (m_provisionalParent != null) {
            m_provisionalParent.removeFromParent();
            m_provisionalParent = null;
        }
    }
1280153
@Override
  public void removeChildren(Element node) {

    NodeList children = node.getChildNodes();
    for (int i = (children.getLength() - 1); i >= 0; i--) {
      node.removeChild(children.item(i));
    }
  }
897093
function(element)
	{
		if (element.style != null)
		{
			element.style.cursor = '';
		}
		
		var children = element.childNodes;
		
		if (children != null)
		{
	        var childCount = children.length;
	        
	        for (var i = 0; i < childCount; i += 1)
	        {
	            mxUtils.removeCursors(children[i]);
	        }
	    }
	}
864144
function () {
        YAHOO.util.Event.purgeElement(this.container,true);
        this.container.parentNode.removeChild(this.container);
        this.container = null;
    }
1370864
public void removeChild(int index) {
    N child = children.remove(index);
    child.setParent(null);
  }
523205
public static CmsInlineEditOverlay addOverlayForElement(Element element) {

        CmsInlineEditOverlay overlay = new CmsInlineEditOverlay(element);
        if (!m_overlays.isEmpty()) {
            m_overlays.get(m_overlays.size() - 1).setVisible(false);
        }
        m_overlays.add(overlay);
        RootPanel.get().add(overlay);
        overlay.updatePosition();
        overlay.checkZIndex();
        return overlay;
    }
898148
function(element) {
        element = OpenLayers.Util.getElement(element);
        element.parentNode.removeChild(element);
    }
438954
private void hideItemContent(Element element) {

        List<Element> itemWidget = CmsDomUtil.getElementsByClass(
            org.opencms.gwt.client.ui.css.I_CmsLayoutBundle.INSTANCE.listItemWidgetCss().itemContainer(),
            element);
        if ((itemWidget != null) && (itemWidget.size() > 0)) {
            itemWidget.get(0).addClassName(I_CmsSitemapLayoutBundle.INSTANCE.sitemapItemCss().contentHide());
        }
    }
1031513
protected void initEditOverlay(Element element) {

        CmsInlineEditOverlay.removeAll();
        m_editOverlay = CmsInlineEditOverlay.addOverlayForElement(element);
        if (m_resizeHandlerRegistration != null) {
            m_resizeHandlerRegistration.removeHandler();
        }
        // add a handler to ensure the edit overlays get adjusted to changed window size
        m_resizeHandlerRegistration = Window.addResizeHandler(new ResizeHandler() {

            private Timer m_resizeTimer;

            public void onResize(ResizeEvent event) {

                if (m_resizeTimer == null) {
                    m_resizeTimer = new Timer() {

                        @Override
                        public void run() {

                            handleResize();
                        }
                    };
                    m_resizeTimer.schedule(300);
                }
            }

            /**
             * Handles the window resize.<p>
             */
            void handleResize() {

                m_resizeTimer = null;
                CmsInlineEditOverlay.updateCurrentOverlayPosition();
            }
        });
    }
870763
public final void removeElementsWithTag(@Nonnull String tag) {
        getElements().stream()
                .map(ElementView::getElement)
                .filter(e -> e.hasTag(tag))
                .forEach(this::removeElement);
    }
556342
public void remove(T element) {
      lock.writeLock().lock();
      try {
         if (outgoingEdges.remove(element) != null) {
            for (Set<T> values : outgoingEdges.values()) {
               values.remove(element);
            }
         }
         if (incomingEdges.remove(element) != null) {
            for (Set<T> values : incomingEdges.values()) {
               values.remove(element);
            }
         }
      } finally {
         lock.writeLock().unlock();
      }
   }
267459
public synchronized void removeElement(T element) {
		List<T> origList = ref.get().list;
		boolean isPresent = origList.contains(element);
		if (!isPresent) {
			return;
		}
		
		List<T> newList = new ArrayList<T>(origList);
		newList.remove(element);
		
		swapWithList(newList);
	}