Remove an item from the breadcrumb trail by its priority.

@access public

@param int $priority Priority to remove breadcrumb item by.
438220
public function remove_item_by_priority( $priority = 0 ) {
		// Search all items for the same priority.
		$all_items = $this->get_items();
		if ( array_key_exists( $priority, $all_items ) ) {
			// Remove all items with that priority.
			unset( $all_items[ $priority ] );
		}

		// Update the items.
		$this->set_items( $all_items );
	}
566530
public function removeEventHandler($eventName, $eventHandlerName, $priority = 50)
    {
        $this->removeHandler(self::EVENT, $eventName, $eventHandlerName, $priority);
    }
1061031
public function quit($quitmessage = null, $priority = SMARTIRC_CRITICAL)
    {
        if ($quitmessage !== null) {
            $this->send('QUIT :'.$quitmessage, $priority);
        } else {
            $this->send('QUIT', $priority);
        }

        return $this->disconnect(true);
    }
113540
public function defer($runLevel, $priority = 10)
    {
        $this->deferred = true;
        $this->runLevel = $runLevel;
        $this->priority = $priority;
    }
1249979
public function removeListener(string $eventName, callable $listener, $priority = 0): MediatorInterface
    {
        $this->checkEventName($eventName);
        if (!\array_key_exists($eventName, $this->listeners)) {
            return $this;
        }
        /**
         * @var array      $priorities
         * @var int        $atPriority
         * @var callable[] $listeners
         */
        if ('last' !== $priority) {
            $priorities = $this->listeners[$eventName];
        } else {
            $priorities = \array_reverse($this->listeners[$eventName], \true);
            $priority = 'first';
        }
        $isIntPriority = \is_int($priority);
        foreach ($priorities as $atPriority => $listeners) {
            if ($isIntPriority && $priority !== $atPriority) {
                continue;
            }
            $key = \array_search($listener, $listeners, \true);
            if (\false !== $key) {
                $this->bubbleUpUnsetListener($eventName, $atPriority, $key);
                if ('first' === $priority) {
                    break;
                }
            }
        }
        return $this;
    }
1140901
public function delete(ProductOrderItem $productOrderItem)
    {
        $this->getEm()->remove($productOrderItem);
        $this->getEm()->flush();
    }
1335528
public function clear($name)
    {
        $this->data[$name] = new \Yurun\Swoole\SharedMemory\Struct\PriorityQueue;
    }
1135812
public function removeFilterHandler($filterName, $filterHandlerName, $priority = 50)
    {
        $this->removeHandler(self::FILTER, $filterName, $filterHandlerName, $priority);
    }
441351
public function setPriority($priority)
    {
        $oldPriority = $this->priority;
        $this->priority = $priority;
        if (!($this instanceof RunInterface && $this->hasStarted())
            && method_exists($this, 'dispatch')
            && $this instanceof PrioritisedInterface) {
            $this->dispatch(PriorityChangedEvent::CHANGED, new PriorityChangedEvent($this, $priority, $oldPriority));
        }
        return $this;
    }
716429
public function remove($item)
    {
        $renumberKeys = false;
        foreach ($this->items as $key => $value) {
            if ($item === $value) {
                $renumberKeys = true;
                unset($this->items[$key]);
            }
        }
        if ($renumberKeys) {
            $this->items = array_values($this->items);
        }
    }
54456
public function remove(Item $item): void
    {
        foreach ($this->list as $key => $itemToCheck) {
            if ($itemToCheck === $item) {
                unset($this->list[$key]);
                break;
            }
        }
    }
532030
public function remove_item_by_method( $method, $data ) {
		// Search all items for one with the same title.
		$all_items = $this->get_items();
		foreach ( $all_items as $priority => $items ) {
			foreach ( $items as $item_key => $item ) {
				$method_result = call_user_func( array( $item, $method ), $data );
				if ( 0 === strcasecmp( $method_result, $data ) ) {
					// If we have a match, remove that item.
					unset( $all_items[ $priority ][ $item_key ] );
				}
			}
		}

		// Update the items.
		$this->set_items( $all_items );
	}
474908
public function remove($item)
    {
        foreach ($this->currentList as $index => $candidate) {
            if ($candidate === $item) {
                unset($this->currentList[$index]);
            }
        }
    }
518676
public function setPriority($priority) {
        if (!$this->isValidPriority($priority)) {
            throw new InvalidPriorityException('Priority must be on of Event::PRIORITY_*');
        }
        $this->priority = $priority;

        return $this;
    }
655507
public function setPriority($priority)
	{
		if (is_string($priority))
		{
			switch (strtolower($priority))
			{
				case 'high':
					$priority = 1;
					break;

				case 'normal':
					$priority = 3;
					break;

				case 'low':
					$priority = 5;
					break;

				default:
					$priority = 3;
					break;
			}
		}
		return parent::setPriority($priority);
	}
19027
public function setPriority($priority)
    {
        if (!OptionsPriorities::isValid($priority)) {
            throw new InvalidOptionsException('priority is not valid, please refer to the documentation or use the constants of the class "OptionsPriorities"');
        }
        $this->priority = $priority;

        return $this;
    }
879357
public function removeItem(BreadcrumbItem $item): void
    {
        if (!$this->items->contains($item)) {
            throw new InvalidArgumentException(sprintf('Item « %s » is not in breadcrumb', $item));
        }
        $this->items->removeElement($item);

        $this->items->forAll(function ($key, &$item) {
            $item->setCurrent(false);

            return true;
        });

        $this->items->last()->setCurrent();
        $this->items->first();
    }