Removes the before.

@param docId the doc id
@param position the position
357481
public void removeBefore(int docId, int position) {
    if (ignoreSpans != null && docId == currentDocId) {
      baseStartPositionList.entrySet()
          .removeIf(entry -> entry.getKey() < position);
      baseEndPositionList.entrySet()
          .removeIf(entry -> entry.getKey() < position);
      fullEndPositionList.entrySet()
          .removeIf(entry -> entry.getKey() < position);
      minBaseStartPosition.entrySet()
          .removeIf(entry -> entry.getKey() < position);
      maxBaseEndPosition.entrySet()
          .removeIf(entry -> entry.getKey() < position);
      minFullStartPosition.entrySet()
          .removeIf(entry -> entry.getKey() < position);
      maxFullEndPosition.entrySet()
          .removeIf(entry -> entry.getKey() < position);
      if (minimumPosition < position) {
        minimumPosition = position;
      }
      if (currentPosition < position) {
        currentPosition = position;
      }
    }
  }
1082614
private function removeOldEvents($beforeId)
    {
        $oldEvents = $this->eventCollection
            ->addFieldToFilter('event_id', ['lteq' => $beforeId]);

        $oldEvents->walk('delete');

        return $this;
    }
1176691
public void remove(Id id){
        String dir = getBaseDirectory(id.getDatabase(),id.getCollection());
        boolean i1 = new File(dir+File.separator+id.getEntity()).delete();
        boolean i2 = new File(dir+File.separator+id.getEntity()+".json").delete();
        if(LOG.isDebugEnabled())
            LOG.debug("File removed successfully("+(i1&&i2)+") id: "+id);
    }
280536
public DrawerView removeItem(int position) {
        mAdapter.getItem(position).detach();
        mAdapter.remove(mAdapter.getItem(position));
        updateList();
        return this;
    }
1146684
public void deleteElement(String elementId, final String relatedElementId) {

        elementId = getServerId(elementId);
        removeContainerElements(elementId);
        addToRecentList(elementId, null);
        reloadElements(new String[] {relatedElementId});
    }
460077
public function remove($position)
    {
        $temp = new \SplTempFileObject(-1);

        $this->file->flock(LOCK_EX);

        $filesize = $this->file->getSize();
        $metadata = $this->getMetadata($position);

        // Seek past the document we want to remove
        $this->file->fseek($metadata->length, SEEK_CUR);

        // Write everything after the target document to memory
        $temp->fwrite($this->file->fread($filesize));

        // Clear the file up to the target document
        $this->file->ftruncate($position);

        // Write Temp back to the end of the file
        $temp->fseek(0);
        $this->file->fseek(0, SEEK_END);
        $this->file->fwrite($temp->fread($filesize));

        $this->file->flock(LOCK_UN);
    }
929888
public void truncate(final long position)
    {
        final int index = index(position);
        final int offset = offset(position);
        final Block block = blocks.get(index);
        this.index = index;
        block.limit = offset;
        current = block;
    }
785274
public void remove(Id id) {
        readCache.remove(new CacheKey(id));
        writeCache.remove(id);
    }
1224525
def removeID(self, doc):
        
        if doc is None: doc__o = None
        else: doc__o = doc._o
        ret = libxml2mod.xmlRemoveID(doc__o, self._o)
        return ret
1294144
@Override
	public void removeByCPOptionId(long CPOptionId) {
		for (CPOptionValue cpOptionValue : findByCPOptionId(CPOptionId,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpOptionValue);
		}
	}
353085
public void deselect(Iterable<Integer> positions) {
        Iterator<Integer> entries = positions.iterator();
        while (entries.hasNext()) {
            deselect(entries.next(), entries);
        }
    }
4460
public int getMinStartPosition(int docId, int position) throws IOException {
    if (ignoreSpans != null && docId == currentDocId) {
      if (position < minimumPosition) {
        throw new IOException(
            "Unexpected position, should be >= " + minimumPosition + "!");
      } else {
        computeFullStartPositionMinimum(position);
        if (minFullStartPosition.containsKey(position)) {
          return minFullStartPosition.get(position);
        } else {
          return 0;
        }
      }
    } else {
      return 0;
    }
  }
1301363
@Override
	public void removeByCompanyId(long companyId) {
		for (CPInstance cpInstance : findByCompanyId(companyId,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpInstance);
		}
	}
444169
public void remove(Featurable featurable, Integer id)
    {
        for (final Class<?> type : featurable.getClass().getInterfaces())
        {
            remove(type, featurable);
        }

        for (final Class<? extends Feature> feature : featurable.getFeaturesType())
        {
            final Feature object = featurable.getFeature(feature);
            remove(feature, object);
            for (final Class<?> other : UtilReflection.getInterfaces(feature, Feature.class))
            {
                remove(other, object);
            }

        }
        remove(featurable.getClass(), featurable);
        removeSuperClass(featurable, featurable.getClass());

        featurables.remove(id);
    }
578720
def removeChild(self, position):
        
        assert 0 <= position <= len(self.childItems), \
            "position should be 0 < {} <= {}".format(position, len(self.childItems))

        self.childItems[position].finalize()
        self.childItems.pop(position)
663795
@Override
	public void removeByGroupId(long groupId) {
		for (CPDefinition cpDefinition : findByGroupId(groupId,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpDefinition);
		}
	}
96392
public ModelAdapter<Model, Item> remove(int position) {
        mItems.remove(position, getFastAdapter().getPreItemCount(position));
        return this;
    }