Removes a given variability option

@param OptionInterface $variabilityOption

@return $this
769667
public function removeVariabilityOption(OptionInterface $variabilityOption)
    {
        if ($this->hasVariabilityOption($variabilityOption)) {
            $this->variabilityOptions->removeElement($variabilityOption);
        }

        return $this;
    }
826047
public function removeConstant($nameOrConstant) {
		if ($nameOrConstant instanceof PhpConstant) {
			$nameOrConstant = $nameOrConstant->getName();
		}

		if (!$this->constants->has($nameOrConstant)) {
			throw new \InvalidArgumentException(sprintf('The constant "%s" does not exist.', $nameOrConstant));
		}

		$this->constants->remove($nameOrConstant);

		return $this;
	}
274749
private function __setQueueOptions($options)
    {
        $this->_queueOptions = Hash::merge($this->_queueOptions, $options);

        return $this;
    }
233618
public OptionGroup removeOption(Option option) {
        if (option == null) {
            throw new IllegalArgumentException("Option cannot be null");
        }

        options.remove(option.getValue());
        return this;
    }
1168719
public function deselectAll()
	{
		$this->assertMultiSelect();

		foreach ( $this->getSelectedOptions() as $option ) {
			$option->deselect();
		}

		return $this;
	}
1114143
public function setOptions($options)
	{
		if (!isset($options[self::OPTION_LINE_BREAK])
				&& !isset($options[self::OPTION_INDENTATION])
				&& !isset($options[self::OPTION_TEXT_MODE]))
			return $this;
		if (!$this->isAncestor()) {
			$prevAncestor = $this->getAncestor();
			$this->setAncestor($this);
			$this->options = [
					self::OPTION_LINE_BREAK => $prevAncestor->options[self::OPTION_LINE_BREAK],
					self::OPTION_INDENTATION => $prevAncestor->options[self::OPTION_INDENTATION],
					self::OPTION_TEXT_MODE => $prevAncestor->options[self::OPTION_TEXT_MODE]
			];
		}
		$this->setAncestorOption($options, self::OPTION_LINE_BREAK);
		$this->setAncestorOption($options, self::OPTION_INDENTATION);
		$this->setAncestorOption($options, self::OPTION_TEXT_MODE);
		return $this;
	}
1105102
public function unregister($alias)
    {
        $this->_collection->remove($alias);
        $this->remove($alias);
        return $this;
    }
30004
public function removeProductOptionValue(\Dywee\ProductBundle\Entity\ProductOptionValue $productOptionValue)
    {
        $this->productOptionValues->removeElement($productOptionValue);
    }
411952
public function remove($configOption)
    {
        $this->repository->git(sprintf('config --local --unset %s', $configOption));
        unset($this->configuration[$configOption]);
    }
1158801
public function removeOption($option = true)
    {
        if (true === $option) {
            $this->options = [];
        } elseif (is_string($option) && isset($this->options[$option])) {
            unset($this->options[$option]);
        }

        return $this;
    }
1297881
protected function createVariant(VariableInterface $variable, array $optionMap, $permutation)
    {
        $variant = $this->variantFactory->createNew();
        $variant->setObject($variable);

        if (is_array($permutation)) {
            foreach ($permutation as $id) {
                $variant->addOption($optionMap[$id]);
            }
        } else {
            $variant->addOption($optionMap[$permutation]);
        }

        return $variant;
    }
1193637
public function removeRepeating(string $repeatingValue = ' '): Utility
    {
        $string = preg_replace('{(' . preg_quote($repeatingValue) . ')\1+}', $repeatingValue, $this->string);

        return new static($string, $this->encoding);
    }
215873
public function setVariant($variant)
    {
        if ($this->isFromServer) {
            $this->validateVariant($variant);
        }

        $clone = clone $this;
        $clone->variant = $this->normalizeVariant($variant);

        return $clone;
    }
159839
private function deleteConfiguration(ConfigurationInterface $configuration)
    {
        $this
            ->configurationObjectManager
            ->remove($configuration);

        $this
            ->configurationObjectManager
            ->flush($configuration);

        return $this;
    }
205014
public function deleteConfigValue($moduleId, $variableName)
    {
        if (null !== $moduleConfig = self::create()
            ->filterByModuleId($moduleId)
            ->filterByName($variableName)
            ->findOne()
        ) {
            $moduleConfig->delete();
        };

        return $this;
    }
1212422
public function removeConfig(ConfigInterface $config) {

        // If collection is in merge mode, don't permit removing configs (cannot unmerge)
        if ($this->merge) {
            throw new Exception("Cannot remove configs from merged collection.");
        }

        $this->configs->detach($config);

        return $this;
    }
674667
public function remove($identifier)
    {
        if (!array_key_exists($identifier, $this->variables)) {
            throw new InvalidVariableException('Tried to remove a variable "' . $identifier . '" which is not stored in the context!', 1224479372);
        }
        unset($this->variables[$identifier]);
    }