Removes any component models that are in their default state.
<p>
The subContexts are held onto as they hold the "render id" for the row. This is needed to be able to match the
rendered row back to the subcontext.
</p>
329526
@Override
	public void tidyUpUIContext() {
		RepeaterModel model = getComponentModel();

		if (model.rowContextMap != null) {
			for (Iterator<Map.Entry<Object, SubUIContext>> i = model.rowContextMap.entrySet().
					iterator(); i.hasNext();) {
				Map.Entry<Object, SubUIContext> entry = i.next();
				SubUIContext subContext = entry.getValue();

				UIContextHolder.pushContext(subContext);

				try {
					getRepeatRoot().tidyUpUIContextForTree();
				} finally {
					UIContextHolder.popContext();
				}
			}
		}

		super.tidyUpUIContext();
	}
44196
void remove(final WComponent aChild) {
		ComponentModel model = getOrCreateComponentModel();

		if (model.getChildren() == null) {
			model.setChildren(copyChildren(getComponentModel().getChildren()));
		}

		if (model.getChildren().remove(aChild)) {
			// Deallocate children list if possible, to reduce session size.
			if (model.getChildren().isEmpty()) {
				model.setChildren(null);
			}

			// The child component has been successfully removed so clean up the context.
			aChild.reset();

			// If the parent has been set in the shared model, we must override
			// it in the session model for the component to be considered removed.
			// This unfortunately means that the model will remain in the user's session.
			if (aChild.getParent() != null && aChild instanceof AbstractWComponent) {
				((AbstractWComponent) aChild).getOrCreateComponentModel().setParent(null);
				((AbstractWComponent) aChild).removeNotify();
			}
		}
	}
131017
@Override
	public synchronized void removeContext(Context context) {

        if( log.isDebugEnabled() )
            log.debug("Removing context[" + context.getPath() + "]");

        boolean isContextExists = isContextExists(context);
        if(!isContextExists)
        	return;
        
        // Remove this Context from the associated Host
        if( log.isDebugEnabled() )
            log.debug(" Removing this Context");
        context.getParent().removeChild(context);

    }
648606
public void deleteRows(List<CmsAliasTableRow> rowsToDelete) {

        List<CmsAliasTableRow> liveData = m_view.getLiveData();
        for (CmsAliasTableRow row : liveData) {
            CmsUUID structureId = row.getStructureId();
            if (structureId != null) {
                m_deletedIds.add(row.getStructureId());
            }
        }
        // prevent selection model from going out of synch
        m_view.getTable().getSelectionModel().clear();
        liveData.removeAll(rowsToDelete);
        updateValidationStatus();
    }
561613
private void unlinkAllChildReferences() {
    List<ModelElementType> childElementTypes = elementType.getAllChildElementTypes();
    for (ModelElementType type : childElementTypes) {
      Collection<ModelElementInstance> childElementsForType = getChildElementsByType(type);
      for (ModelElementInstance childElement : childElementsForType) {
        ((ModelElementInstanceImpl) childElement).unlinkAllReferences();
      }
    }
  }
486177
@Override
	public void paint(final RenderContext renderContext) {
		super.paint(renderContext);
		UIContext uic = UIContextHolder.getCurrent();

		if (LOG.isDebugEnabled()) {
			UIContextDebugWrapper debugWrapper = new UIContextDebugWrapper(uic);
			LOG.debug("Session usage after paint:\n" + debugWrapper);
		}

		LOG.debug("Performing session tidy up of WComponents (any WComponents disconnected from the active top component will not be tidied up.");
		getUI().tidyUpUIContextForTree();

		LOG.debug("After paint - Clearing scratch maps.");
		uic.clearScratchMap();
		uic.clearRequestScratchMap();
	}
1152978
def clear(self):
        
        self._logger.debug("Component handlers are cleared")

        # Clean up everything to avoid stale references, ...
        self._field = None
        self._name = None
        self._logger = None
1055924
public void removeFromAccordion(JComponent component) 
    {
        CollapsiblePanel collapsiblePanel = collapsiblePanels.get(component);
        if (collapsiblePanel != null)
        {
            contentPanel.remove(collapsiblePanel);
            collapsiblePanels.remove(component);
            revalidate();
        }
    }
1022123
public void removeShortDefaultBindings()
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
            Tr.debug(tc, "removeShortDefaultBindings called");

        for (String bindingName : ivEjbContextShortDefaultJndiNames)
        {
            removeFromServerContextBindingMap(bindingName, false);
        }

        ivEjbContextShortDefaultJndiNames.clear();
    }
189988
public void removeEjbBindings()
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
            Tr.debug(tc, "removeEjbBindings called");

        // Just loop through the values, not the keys, as the simple-binding-name
        // key may have a # in front of it when the bean was not simple, and that
        // won't match what is in the ServerContextBindingMap.           d457053.1

        for (String bindingName : ivEjbContextBindingMap.values())
        {
            removeFromServerContextBindingMap(bindingName, true);
        }

        ivEjbContextBindingMap.clear();
    }
1083632
function() {
      var t = this,
          val = t.editor.val();
      if (val) {
        try {
          // Throw away parse errors while typing
          t.model.set(JSON.parse(val));
        } catch (e) {
          return false;
        }
      } else {
        // Confirm deletion if user removes everything in the JSON window
        if (window.confirm('Are you sure you want to remove this component?')) {
          t.pageView.model.get('components').remove(t.model);
          $('#nm-cv-settings').modal('hide');
        } else {
          // Reset source data
          t.fillSourceData();
        }
      }
      return true;
    }
434369
public static function cleanComponents()
    {
        foreach (self::$components as $name => $component)
        {
            if ( ! $component->persistence)
            {
                self::$components[$name] = null;
                unset(self::$components[$name]);
            }
        }
    }
1291902
public void referencedElementRemoved(ModelElementInstance referenceTargetElement, Object referenceIdentifier) {
    for (ModelElementInstance referenceSourceElement : findReferenceSourceElements(referenceTargetElement)) {
      if (referenceIdentifier.equals(getReferenceIdentifier(referenceSourceElement))) {
        removeReference(referenceSourceElement, referenceTargetElement);
      }
    }
  }
1262173
function() {
      var t = this,
          components = t.model.get('components');
      components.remove(components.models);
      t.showSettings();
    }
816476
public void unregisterComponentBindingsProvider(ServiceReference reference) {
		log.info("unregisterComponentBindingsProvider");
		String[] resourceTypes = OsgiUtil.toStringArray(reference
				.getProperty(ComponentBindingsProvider.RESOURCE_TYPE_PROP),
				new String[0]);
		for (String resourceType : resourceTypes) {
			if (!this.containsKey(resourceType)) {
				continue;
			}
			get(resourceType).remove(reference);
		}
	}
227875
public void clear() {
        modCount++;

        // clear to let GC do its work
        for (int i = 0; i < size; i++)
            elementData[i] = null;

        size = 0;
    }
486492
private void removeContext(IWorkbenchPage page)
	{
		// pageToContextMap.remove(page);
		// if (pageToContextMap.isEmpty())
		// {
		//			System.setProperty(DEBUGGER_ACTIVE, "false"); //$NON-NLS-1$
		// // System.setProperty(INSTANCE_OF_IJAVA_STACK_FRAME, "false");
		//			// //$NON-NLS-1$
		//			// System.setProperty(SUPPORTS_FORCE_RETURN, "false"); //$NON-NLS-1$
		// // System.setProperty(SUPPORTS_INSTANCE_RETRIEVAL, "false");
		//			// //$NON-NLS-1$
		// }
		if (fContextsByPage != null)
		{
			fContextsByPage.remove(page);
			if (fContextsByPage.isEmpty())
			{
				System.setProperty(DEBUGGER_ACTIVE, "false"); //$NON-NLS-1$
				System.setProperty(INSTANCE_OF_IJAVA_STACK_FRAME, "false"); //$NON-NLS-1$
				System.setProperty(SUPPORTS_FORCE_RETURN, "false"); //$NON-NLS-1$
				System.setProperty(SUPPORTS_INSTANCE_RETRIEVAL, "false"); //$NON-NLS-1$
			}
		}
	}