Removes a data object from the M-Tree.
@param data The data object to be removed.
@return {@code true} if and only if the object was found.
428721
public boolean remove(DATA data) {
		if(root == null) {
			return false;
		}
		
		double distanceToRoot = distanceFunction.calculate(data, root.data);
		try {
			root.removeData(data, distanceToRoot);
		} catch(RootNodeReplacement e) {
			@SuppressWarnings("unchecked")
			Node newRoot = (Node) e.newRoot;
			root = newRoot;
		} catch(DataNotFound e) {
			return false;
		} catch (NodeUnderCapacity e) {
			throw new RuntimeException("Should have never happened", e);
		}
		return true;
	}
936604
protected String trimIfNeeded(final String data) {
        String resultData = data;

        if (trimDataBeforeValidation && (data != null)) {
            resultData = data.trim();
        }

        return resultData;
    }
1211853
public function deleteData($data) : Bool
    {
        if( is_array($data) ) foreach( $data as $v )
        {
            unset($_SESSION[$this->fix . $v]);
        }
        else
        {
            unset($_SESSION[$this->fix . $data]);
        }

        return true;
    }
314721
public boolean removePDatabase(PDatabase pDatabase)
    {
        Object strKey = pDatabase.getDatabaseKey();
        Object obj = m_htDBList.get(strKey);
        if (obj == null)
            return false;
        return (m_htDBList.remove(strKey) != null);
    }
854017
@Override
    public boolean remove(Object o)
    {
        int idx = indexOf((E) o);
        if (idx >= 0)
        {
            list.remove(idx);
            return true;
        }
        return false;
    }
453982
@Override
    public boolean remove(Object o) {
        Integer id = indexOf((Record) o);
        if(id == null) {
            return false;
        }
        remove(id);
        return true;
    }
697737
@SuppressWarnings("unchecked")
    private void delete(SoftHandle<K, V> n) {
        if (n.tree == null) {
            throw new IllegalArgumentException("Invalid handle!");
        }

        /*
         * Delete from belonging list. Care must be taken as the tree reference
         * is valid only if the node is the first in the list.
         */
        TreeNode<K, V> tree = n.tree;

        if (tree.cHead != n) {
            /*
             * Not first in list. Each case, remove and leave as ghost element.
             */
            if (n.next != null) {
                n.next.prev = n.prev;
            }
            n.prev.next = n.next;
        } else {
            /*
             * First in list
             */
            SoftHandle<K, V> nNext = n.next;
            tree.cHead = nNext;
            if (nNext != null) {
                /*
                 * More elements exists, remove and leave as ghost element.
                 * Update new first element to point to correct tree.
                 */
                nNext.prev = null;
                nNext.tree = tree;
            } else {
                /*
                 * No more elements, sift.
                 */
                sift(tree);

                /*
                 * If still no elements, remove tree.
                 */
                if (tree.cHead == null) {
                    if (tree.parent instanceof TreeNode) {
                        TreeNode<K, V> p = (TreeNode<K, V>) tree.parent;
                        if (p.left == tree) {
                            p.left = null;
                        } else {
                            p.right = null;
                        }
                    } else {
                        delete((RootListNode<K, V>) tree.parent);
                    }
                }

            }
        }

        n.tree = null;
        n.prev = null;
        n.next = null;

        size--;
    }
942215
public String delete_attribute(Map<String, Object> data) {
        String type = data.get("type").toString();
        Gson gson = new Gson();
        String json = gson.toJson(data);
        return post("attribute/" + type, json);
    }
302747
public synchronized boolean remove() {
        SharedPreferences prefs = loadSharedPreferences("object");

        if (find(getId()) != null) {
            if (!removeObject()) return false;

            modelListenerHandler.execOnUpdateListeners(this, OnUpdateListener.Status.REMOVED);

            prefs.edit().putString(String.valueOf(getId()), null).commit();

            return true;
        }

        return false;
    }
388869
public boolean removeItems(Collection<? extends T> items) {
        if (mListItems.removeAll(items)) {
            notifyDataSetChanged();
            return true;
        }
        return false;
    }
729878
public boolean removeDatastore(final String datastoreName) {
        final Element datastoreCatalogElement = getDatastoreCatalogElement();
        final NodeList childNodes = datastoreCatalogElement.getChildNodes();
        final int length = childNodes.getLength();
        for (int i = 0; i < length; i++) {
            final Node node = childNodes.item(i);
            if (node instanceof Element) {
                final Element element = (Element) node;
                final Attr[] attributes = XmlDomDataContext.getAttributes(element);
                for (Attr attr : attributes) {
                    if ("name".equals(attr.getName())) {
                        final String value = attr.getValue();
                        if (datastoreName.equals(value)) {
                            // we have a match
                            datastoreCatalogElement.removeChild(element);
                            
                            onDocumentChanged(getDocument());
                            
                            return true;
                        }
                    }
                }
            }
        }

        return false;
    }
957928
@Override
	public synchronized boolean free(CachedData data) {
		@SuppressWarnings("unchecked")
		Value value = ((Data<Value>)data).value;
		values.remove(value);
		Key key = null;
		for (Map.Entry<Key,Data<Value>> e : map.entrySet())
			if (e.getValue() == data) {
				key = e.getKey();
				break;
			}
		map.remove(key);
		if (freer != null) freer.fire(value);
		return true;
	}
770114
public T updateData(String name, T data) {
        Node<T> node = root.getNode(name);
        T old = null;
        if (node != null) {
            old = node.setData(data);
        }
        return old;
    }
583197
public static boolean containsKey(Map<?, ?> data, Object what) {
        return data != null && data.containsKey(what);
    }
22890
public boolean removeItem(T object) {
        int size = 0;
        for (int i = 0, listsSize = lists.size(); i < listsSize; i++) {
            List<? extends T> list = lists.get(i);
            if (!(list instanceof ObservableList)) {
                Object item = list.get(0);
                if ((object == null) ? (item == null) : object.equals(item)) {
                    lists.remove(i);
                    modCount += 1;
                    listeners.notifyRemoved(this, size, 1);
                    return true;
                }
            }
            size += list.size();
        }
        return false;
    }
1099304
protected void removeBy(BaseCell data) {
        VirtualLayoutManager layoutManager = getLayoutManager();
        if (data != null && mGroupBasicAdapter != null && layoutManager != null) {
            int removePosition = mGroupBasicAdapter.getPositionByItem(data);
            if (removePosition >= 0) {
                int cardIdx = mGroupBasicAdapter.findCardIdxFor(removePosition);
                Card card = mGroupBasicAdapter.getCardRange(cardIdx).second;
                card.removeCellSilently(data);
                List<LayoutHelper> layoutHelpers = layoutManager.getLayoutHelpers();
                LayoutHelper emptyLayoutHelper = null;
                if (layoutHelpers != null && cardIdx >= 0 && cardIdx < layoutHelpers.size()) {
                    for (int i = 0, size = layoutHelpers.size(); i < size; i++) {
                        LayoutHelper layoutHelper = layoutHelpers.get(i);
                        int start = layoutHelper.getRange().getLower();
                        int end = layoutHelper.getRange().getUpper();
                        if (end < removePosition) {
                            //do nothing
                        } else if (start <= removePosition && removePosition <= end) {
                            int itemCount = layoutHelper.getItemCount() - 1;
                            if (itemCount > 0) {
                                layoutHelper.setItemCount(itemCount);
                                layoutHelper.setRange(start, end - 1);
                            } else {
                                emptyLayoutHelper = layoutHelper;
                            }
                        } else if (removePosition < start) {
                            layoutHelper.setRange(start - 1, end - 1);
                        }
                    }
                    if (emptyLayoutHelper != null) {
                        final List<LayoutHelper> newLayoutHelpers = new LinkedList<>(layoutHelpers);
                        newLayoutHelpers.remove(emptyLayoutHelper);
                        layoutManager.setLayoutHelpers(newLayoutHelpers);
                    }
                    mGroupBasicAdapter.removeComponent(data);
                }
            }
        }
    }
1077366
public boolean remove(SpdData data) {
        if (data == null)
            return false;
        if (data instanceof SpdLoad) {
            return super.remove(data);
        } else {
            return false;
        }
    }