Deselects an item.<p>
559056
public void deselectItem() {

        getElement().removeClassName(I_CmsLayoutBundle.INSTANCE.contextmenuCss().selected());
        m_parentMenu.setSelectedItem(null);
    }
766748
public List<Item> deleteAllSelectedItems() {
        List<Item> deletedItems = new ArrayList<>();

        final List<Integer> positions = new ArrayList<>();
        mFastAdapter.recursive(new AdapterPredicate<Item>() {
            @Override
            public boolean apply(@NonNull IAdapter<Item> lastParentAdapter, int lastParentPosition, Item item, int position) {
                if (item.isSelected()) {
                    //if it's a subitem remove it from the parent
                    if (item instanceof ISubItem) {
                        //a sub item which is not in the list can be instantly deleted
                        IExpandable parent = (IExpandable) ((ISubItem) item).getParent();
                        //parent should not be null, but check in any case..
                        if (parent != null) {
                            parent.getSubItems().remove(item);
                        }
                    }
                    if (position != -1) {
                        //a normal displayed item can only be deleted afterwards
                        positions.add(position);
                    }
                }
                return false;
            }
        }, false);

        //we have to re-fetch the selections array again and again as the position will change after one item is deleted
        for (int i = positions.size() - 1; i >= 0; i--) {
            FastAdapter.RelativeInfo<Item> ri = mFastAdapter.getRelativeInfo(positions.get(i));
            if (ri.item != null && ri.item.isSelected()) { //double verify
                if (ri.adapter != null && ri.adapter instanceof IItemAdapter) {
                    ((IItemAdapter) ri.adapter).remove(positions.get(i));
                }
            }
        }
        return deletedItems;
    }
852958
public void removeItemDeleteListener(ItemDeleteListener listener) {
        StanzaListener conListener = itemDeleteToListenerMap .remove(listener);

        if (conListener != null)
            pubSubManager.getConnection().removeSyncStanzaListener(conListener);
    }
499920
protected void doDelete(final ItemData item, final WorkspaceStorageConnection con, ChangedSizeHandler sizeHandler)
      throws RepositoryException, InvalidItemStateException
   {

      if (item.isNode())
      {
         con.delete((NodeData)item);
      }
      else
      {
         con.delete((PropertyData)item, sizeHandler);
      }
   }
983504
public I removeItem(String itemId) {

        I item = m_items.get(itemId);
        remove((Widget)item);
        return item;
    }
467563
public void removeValue(String name) {
		properties.removeItem(name);
		values.remove(name);

		if (properties.getItemCount() >= 1) {
			properties.setSelectedIndex(0);
		} else {
			panel.setInterpolator(null);
		}

		enableControls();
	}
1088492
void removeRow() {

        HasComponents parent = CmsRemovableFormRow.this.getParent();
        if (parent instanceof ComponentContainer) {
            ((ComponentContainer)parent).removeComponent(CmsRemovableFormRow.this);
        }
        if (m_remove != null) {
            m_remove.run();
        }
    }
1223517
public void deselect(int position, @Nullable Iterator<Integer> entries) {
        Item item = mFastAdapter.getItem(position);
        if (item == null) {
            return;
        }
        deselect(item, position, entries);
    }
17669
public void deselectByValue(String value) {
        getDispatcher().beforeDeselect(this, value);
        
        new Select(getElement()).deselectByValue(value);
        if (Config.getBoolConfigProperty(ConfigProperty.ENABLE_GUI_LOGGING)) {
            logUIActions(UIActions.CLEARED, value);
        }
        
        getDispatcher().afterDeselect(this, value);
    }
1237481
protected void removeInvalidChildren() {

        if (getLoadState() == LoadState.LOADED) {
            List<CmsSitemapTreeItem> toDelete = new ArrayList<CmsSitemapTreeItem>();
            for (int i = 0; i < getChildCount(); i++) {
                CmsSitemapTreeItem item = (CmsSitemapTreeItem)getChild(i);
                CmsUUID id = item.getEntryId();
                if ((id != null) && (CmsSitemapView.getInstance().getController().getEntryById(id) == null)) {
                    toDelete.add(item);
                }
            }
            for (CmsSitemapTreeItem deleteItem : toDelete) {
                m_children.removeItem(deleteItem);
            }
        }
    }
500525
public void deselectAll() {
        getDispatcher().beforeDeselect(this);
        
        new Select(getElement()).deselectAll();
        if (Config.getBoolConfigProperty(ConfigProperty.ENABLE_GUI_LOGGING)) {
            logUIActions(UIActions.CLEARED, "all");
        }
        
        getDispatcher().afterDeselect(this);
    }
82386
public void clearSelections() {
        for (CheckableViewHolder vh : mCheckedVisibleViewHolders) {
            vh.checkbox.setChecked(false);
        }
        mCheckedVisibleViewHolders.clear();
        mCheckedItems.clear();
    }
816577
def DeSelectByIndex(cls, index):
        ''' 
        '''
        try:
            Select(cls._element()).deselect_by_index(int(index))
        except:
            return False
985760
def deleteSelected(self):
        ''
        ndeleted = self.deleteBy(self.isSelected)
        nselected = len(self._selectedRows)
        self._selectedRows.clear()
        if ndeleted != nselected:
            error('expected %s' % nselected)
1287049
public void setDeselectAllText(final String deselectAllText) {
        if (deselectAllText != null)
            attrMixin.setAttribute(DESELECT_ALL_TEXT, deselectAllText);
        else
            attrMixin.removeAttribute(DESELECT_ALL_TEXT);
    }
1115290
protected void onClose() {

        if ((m_selectedItem != null)) {
            if (m_selectedItem.hasSubmenu()) {
                m_selectedItem.getSubMenu().onClose();
            }
            m_selectedItem.deselectItem();
        }
        m_popup.hide();
    }
102824
def heapremove(heap,item):
    
    i=heap.index(item)
    lastelt=heap.pop()
    if item==lastelt:
        return
    heap[i]=lastelt
    heapq._siftup(heap,i)
    if i:
        heapq._siftdown(heap,0,i)