Delete a marker from the map

@param   integer  $index  Index of marker to delete (defaults to last added marker)

@return  array The latitude/longitude of the deleted marker

@since   1.0
@throws  OutOfBoundsException
186708
public function deleteMarker($index = null)
	{
		$markers = $this->listMarkers();

		if ($index === null)
		{
			$index = count($markers) - 1;
		}

		if ($index >= count($markers) || $index < 0)
		{
			throw new OutOfBoundsException('Marker index out of bounds.');
		}

		$marker = $markers[$index];
		unset($markers[$index]);
		$markers = array_values($markers);
		$this->setOption('markers', $markers);

		return $marker;
	}
400926
public function pop($index = null)
    {
        if (is_null($index)) {
            return array_pop($this->source);
        }

        $previousValue = $this->offsetGet($index);

        array_splice($this->source, $index, 1);

        return $previousValue;
    }
226543
public function deltasByIndex(string $index): array
    {
        if (array_key_exists($index, $this->deltas_stack) === true) {
            return $this->deltas_stack[$index];
        } else {
            throw new \OutOfRangeException(
                'Deltas array does not exist for the given index: ' . $index
            );
        }
    }
180873
public function withIndex(int $index): self
    {
        $state = clone $this;
        $state->_index = $index;
        return $state;
    }
298920
public function remove($index)
    {
        if($index >= $this->count())
            throw new OutOfRangeException('Index out of range');

        array_splice($this->_collection, $index, 1);
    }
413469
public function getChildAt($index)
	{
		if ($index < 0) {
			throw new OutOfRangeException();
		}
		if ($index >= count($this->node_children)) {
			throw new OutOfRangeException();
		}
		return $this->node_children[$index];
	}
224489
public function remove($index) {
        $e = $this->elements[$index];
        unset($this->elements[$index]);
        $this->clean();
        $this->fire(new ListDeleteEvent($e, $index));
        return $e;
    }
1281239
public static function getPathSegment(int $index = 0)
    {
        $pathComponents = self::getPathSegments();
        return ArrayUtils::getArrayValueForKeyOrDefault($pathComponents, $index, false);
    }
1060412
public function removeItemByIndex($index): ContainerInterface
    {
        if ($this->hasItem($index)) {
            $this->items[$index] = null; //prevente unset item.
            unset($this->items[$index]); //unset only index, not the item.
        }

        return $this;
    }
1112682
public function removeColumn($index)
    {
        $this->mappingColumns = null;
        array_splice($this->columns, $index, 1);

        return $this;
    }
172910
public function getStage($index)
    {
        if ( ! isset($this->stages[$index])) {
            throw new \OutOfRangeException("Could not find stage with index {$index}.");
        }

        return $this->stages[$index];
    }
1059038
public function delete($index)
    {
        $request = $this->createRequestInstance(self::INDEX_DELETE, $index, null);

        return $this->client->send($request);
    }
685527
public function at($index)
    {
        if (isset($this->_children[$index])) {
            return $this->_children[$index];
        }
        throw new OutOfBoundsException("Index $index does not exist");
    }
1257298
public function remove($index)
    {
        if( $index >= count($this->generators) || $index < 0 )
            return;
        
        unset($this->generators[$index]);
        $this->generators = array_values($this->generators);
    }
503117
public function removeIndex( $index )
	{
		if( !isset( $this->list[$index] ) )
			throw new DomainException( 'Item with Index '.$index.' is not existing.' );
		unset( $this->list[$index] );
		return $this->write();
	}
104095
public static function getDeleted(Index $index)
    {
        $change = new IndexMigrationChange();

        $change->isDeleted = true;
        $change->index = $index;

        return $change;
    }
704327
public function remove($index)
	{
		if ($this->has($index))
		{
			Arr::forget($this->data, $index);
			Arr::forget($this->metas, $this->firstIndex($index));
		}

		return $this;
	}