Removes an item from the list.<p>

@param item the item to remove

@return the removed item

@see org.opencms.gwt.client.ui.CmsList#removeItem(org.opencms.gwt.client.ui.I_CmsListItem)
171525
public CmsTreeItem removeChild(final CmsTreeItem item) {

        item.setParentItem(null);
        item.setTree(null);
        if ((m_tree != null) && m_tree.isAnimationEnabled()) {
            // could be null if already detached
            // animate
            (new Animation() {

                /**
                 * @see com.google.gwt.animation.client.Animation#onComplete()
                 */
                @Override
                protected void onComplete() {

                    super.onComplete();
                    m_children.removeItem(item);
                    onChangeChildren();
                }

                /**
                 * @see com.google.gwt.animation.client.Animation#onUpdate(double)
                 */
                @Override
                protected void onUpdate(double progress) {

                    item.getElement().getStyle().setOpacity(1 - progress);
                }
            }).run(ANIMATION_DURATION);
        } else {
            m_children.removeItem(item);
            onChangeChildren();
        }
        return item;
    }
441603
public void remove(String item) {
        if(item == null || item.isEmpty()){
            return;
        }
        if(LOGGER.isDebugEnabled()) {
            LOGGER.debug("移除词性：" + item);
        }
        //从根节点开始查找
        //获取根节点
        TrieNode<V> node = getRootNode(item.charAt(0));
        if(node == null){
            //不存在根节点，结束查找
            if(LOGGER.isDebugEnabled()) {
                LOGGER.debug("词性不存在：" + item);
            }
            return;
        }
        int length = item.length();
        //存在根节点，继续查找
        for(int i=1;i<length;i++){
            char character = item.charAt(i);
            TrieNode<V> child = node.getChild(character);
            if(child == null){
                //未找到匹配节点
                if(LOGGER.isDebugEnabled()) {
                    LOGGER.debug("词性不存在：" + item);
                }
                return;
            }else{
                //找到节点，继续往下找
                node = child;
            }
        }
        if(node.isTerminal()){
            //设置为非叶子节点，效果相当于移除词性
            node.setTerminal(false);
            node.setValue(null);
            if(LOGGER.isDebugEnabled()) {
                LOGGER.debug("成功移除词性：" + item);
            }
        }else{
            if(LOGGER.isDebugEnabled()) {
                LOGGER.debug("词性不存在：" + item);
            }
        }
    }
63990
public function removeItem(Item $item)
    {
        if ($this->items->contains($item)) {
            $this->items->removeElement($item);
            $item->setType(null);
        }

        return $this;
    }
355187
def remove(self, item):
        
        check_not_none(item, "item can't be none")
        return self._encode_invoke(transactional_set_remove_codec, item=self._to_data(item))
88938
public static void deregister(@Nonnull Item item) {
        ItemDeletion instance = instance();
        if (instance != null) {
            instance.lock.writeLock().lock();
            try {
                instance.registrations.remove(item);
            } finally {
                instance.lock.writeLock().unlock();
            }
        }
    }
954182
@Indexable(type = IndexableType.DELETE)
	@Override
	public CommerceShipmentItem deleteCommerceShipmentItem(
		CommerceShipmentItem commerceShipmentItem) {
		return commerceShipmentItemPersistence.remove(commerceShipmentItem);
	}
1170099
private void removeNode(ItemState item, int indexItem)
   {

      items.remove(indexItem);
      index.remove(item.getData().getIdentifier());
      index.remove(item.getData().getQPath());
      index.remove(new ParentIDQPathBasedKey(item));
      index.remove(new IDStateBasedKey(item.getData().getIdentifier(), item.getState()));
      childNodesInfo.remove(item.getData().getIdentifier());
      lastChildNodeStates.remove(item.getData().getIdentifier());
      childNodeStates.remove(item.getData().getIdentifier());
      if (allPathsChanged != null && item.isPathChanged())
      {
         allPathsChanged.remove(item);
         if (allPathsChanged.isEmpty())
            allPathsChanged = null;
      }

      if (item.isPersisted())
      {

         int childInfo[] = childNodesInfo.get(item.getData().getParentIdentifier());

         if (childInfo != null)
         {
            if (item.isDeleted())
            {
               ++childInfo[CHILD_NODES_COUNT];
            }
            else if (item.isAdded())
            {
               --childInfo[CHILD_NODES_COUNT];
            }

            childNodesInfo.put(item.getData().getParentIdentifier(), childInfo);
         }
      }

      Map<String, ItemState> children = lastChildNodeStates.get(item.getData().getParentIdentifier());
      if (children != null)
      {
         children.remove(item.getData().getIdentifier());
         if (children.isEmpty())
         {
            lastChildNodeStates.remove(item.getData().getParentIdentifier());
         }
      }

      List<ItemState> listItemStates = childNodeStates.get(item.getData().getParentIdentifier());
      if (listItemStates != null)
      {
         listItemStates.remove(item);
         if (listItemStates.isEmpty())
         {
            childNodeStates.remove(item.getData().getParentIdentifier());
         }
      }
      if ((children == null || children.isEmpty()) && (listItemStates == null || listItemStates.isEmpty()))
      {
         childNodesInfo.remove(item.getData().getParentIdentifier());
      }
   }
202616
protected TransientItemData copyItemDataDelete(final ItemData item) throws RepositoryException
   {

      if (item == null)
      {
         return null;
      }

      // make a copy
      if (item.isNode())
      {
         final NodeData node = (NodeData)item;

         // the node ACL can't be are null as ACL manager does care about this
         final AccessControlList acl = node.getACL();
         if (acl == null)
         {
            throw new RepositoryException("Node ACL is null. " + node.getQPath().getAsString() + " "
               + node.getIdentifier());
         }

         return new TransientNodeData(node.getQPath(), node.getIdentifier(), node.getPersistedVersion(),
            node.getPrimaryTypeName(), node.getMixinTypeNames(), node.getOrderNumber(), node.getParentIdentifier(), acl);
      }

      // else - property
      final PropertyData prop = (PropertyData)item;

      // make a copy, value wil be null for deleting items
      TransientPropertyData newData =
         new TransientPropertyData(prop.getQPath(), prop.getIdentifier(), prop.getPersistedVersion(), prop.getType(),
            prop.getParentIdentifier(), prop.isMultiValued());

      return newData;
   }
933610
@Indexable(type = IndexableType.DELETE)
	@Override
	public CommerceWishListItem deleteCommerceWishListItem(
		CommerceWishListItem commerceWishListItem) {
		return commerceWishListItemPersistence.remove(commerceWishListItem);
	}
216352
public static Item toItem(Map<String, AttributeValue> item) {
        if (item == null) {
            return null;
        }
        return Item.fromMap(toSimpleMapValue(item));
    }
280536
public DrawerView removeItem(int position) {
        mAdapter.getItem(position).detach();
        mAdapter.remove(mAdapter.getItem(position));
        updateList();
        return this;
    }
1030650
def remove_item(self, item):
        
        self.unindex_item(item)
        self.items.pop(item.uuid, None)
493262
def remove(self, item):
        
        for index, child in enumerate(self._root.getchildren()):
            if child is item._root:
                del self[index]
                return item
        raise WSDLParseError("Non existing item in tag '%s'" %
                               self._schema.tag)
397426
public function removeItem(Item $item)
    {
        if ($this->items->contains($item)) {
            $this->items->removeElement($item);
            $item->removeLabel($this);
        }

        return $this;
    }
79884
private void removeProperty(ItemState item, int indexItem)
   {
      if (indexItem == -1)
      {
         items.remove(item);
      }
      else
      {
         items.remove(indexItem);
      }
      index.remove(item.getData().getIdentifier());
      index.remove(item.getData().getQPath());
      index.remove(new ParentIDQPathBasedKey(item));
      index.remove(new IDStateBasedKey(item.getData().getIdentifier(), item.getState()));
      lastChildPropertyStates.remove(item.getData().getIdentifier());
      childPropertyStates.remove(item.getData().getIdentifier());

      Map<String, ItemState> children = lastChildPropertyStates.get(item.getData().getParentIdentifier());
      if (children != null)
      {
         children.remove(item.getData().getIdentifier());
         if (children.isEmpty())
         {
            lastChildPropertyStates.remove(item.getData().getParentIdentifier());
         }
      }

      List<ItemState> listItemStates = childPropertyStates.get(item.getData().getParentIdentifier());
      if (listItemStates != null)
      {
         listItemStates.remove(item);
         if (listItemStates.isEmpty())
         {
            childPropertyStates.remove(item.getData().getParentIdentifier());
         }
      }
   }
179080
public function removeItem(ItemInterface $item)
    {
        $item->setGrid(null);
        $this->items->removeElement($item);
    }
1176965
def remove_item(self, item):
        
        for idx, _item in enumerate(self.items):
            if item == _item:
                del self.items[idx]
                return True
        return False