NEXT_MAJOR: remove this method.

@deprecated Deprecated since version 3.1, to be removed in 4.0

@param string                    $name
@param DownloadStrategyInterface $security
341330
public function addDownloadSecurity($name, DownloadStrategyInterface $security)
    {
        @trigger_error(
            'The '.__METHOD__.' method is deprecated since version 3.1 and will be removed in 4.0.',
            E_USER_DEPRECATED
        );

        $this->downloadSecurities[$name] = $security;

        $this->addDownloadStrategy($name, $security);
    }
811359
public function removeProvider($name)
    {
        if ($this->hasProvider($name)) {
            unset($this->providers[$name]);

            return true;
        }

        return false;
    }
366295
private function removeProperty($name)
    {
        $properties = null;
        try {
            $properties = $this->getPropValue($this->getProject(), 'properties');
            if ($properties !== null) {
                unset($properties[$name]);
                $this->setPropValue($properties, $this->getProject(), 'properties');
            }
        } catch (Exception $e) {
        }
        try {
            $properties = $this->getPropValue($this->getProject(), 'userProperties');
            if ($properties !== null) {
                unset($properties[$name]);
                $this->setPropValue($properties, $this->getProject(), 'userProperties');
            }
        } catch (Exception $e) {
        }
    }
760940
public function removeConnection($name)
    {
        if (!$this->hasConnection($name)) {
            throw new \InvalidArgumentException(sprintf('The connection "%s" does not exists.', $name));
        }

        unset($this->connections[$name]);
    }
813406
public function removeCookie($name, $path = '/', $domain = null)
    {
        if (null === $path) {
            $path = '/';
        }

        unset($this->cookies[$domain][$path][$name]);

        if (empty($this->cookies[$domain][$path])) {
            unset($this->cookies[$domain][$path]);

            if (empty($this->cookies[$domain])) {
                unset($this->cookies[$domain]);
            }
        }

        if (empty($this->cookies)) {
            unset($this->headerNames['set-cookie']);
        }
    }
348434
public function deregister(string $name): ManagerInterface
    {
        if (!$name) {
            throw DeregisterException::blank();
        } elseif (!$this->isRegistered($name)) {
            throw DeregisterException::missing($name);
        }

        unset($this->shortcodes[$name]);

        return $this;
    }
300295
public function removeProperty($name)
    {
        if (!is_string($name)) {
            throw new InvalidArgumentException(sprintf('%s expects parameter 1 to be string, %s given', __METHOD__, (is_object($name) ? get_class($name) : gettype($name))));
        }

        $this->parseStyleAttribute();

        unset($this->properties[$name]);

        $this->updateStyleAttribute();

        return $this;
    }
631125
protected function unregisterInstance($key, $name)
    {
        if ($this->hasOption($key)) {
            $instances = $this->getOption($key);

            if (($index = array_search($name, $instances)) !== false) {
                unset($instances[$index]);
                $this->setOption($key, $instances);
                $this->registerMetadataService();
            }
        }
    }
1210361
public static function unregisterPartial($name)
    {
        //Argument 1 must be a string
        Argument::i()->test(1, 'string');

        if (isset(self::$partials[$name])) {
            unset(self::$partials[$name]);
        }
    }
400495
public function removeProperty($name)
    {
        if ($this->properties->containsKey($name)) {
            $this->properties->remove($name);
        }
    }
232916
public static function delete($name)
    {
        !isset(self::$init) && self::init();

        setcookie(
            $name, '', $_SERVER['REQUEST_TIME'] - 3600, self::$config['path'],
            self::$config['domain'], self::$config['secure']
        );

        unset($_COOKIE[$name]);
    }
1177722
public function removeResource($name)
    {
        $yaml = $this->getContent();
        if (isset($yaml[$name])) {
            unset($yaml[$name]);
            $this->setContent($yaml);
        }
    }
394773
public function unregister($name)
    {
        $widget = parent::unregister($name);
        $paths = $widget->getPaths();
        if (!is_array($paths)) {
            $this->log->warn(get_class($widget).'::getPaths has invalid return value.');
            $paths = array();
        }

        foreach ($paths as $path) {
            unset($this->paths[$path]);
        }

        return $widget;
    }
654081
public function remove($name, $index = 0)
    {
        $lowerName = strtolower($name);
        unset($this->headers[$lowerName][$index]);
    }
814362
public static function delete(string $name, ?string $path = null, ?string $domain = null, ?bool $secure = null, ?bool $httpOnly = null): void
    {
        setcookie($name, '', time() - 3600 * 24, $path ?? '/', $domain ?? '', $secure ?? false, $httpOnly ?? false);
    }
260899
public function destroySourceTableMigration($name, array $fields)
    {
        $path = $this->getMigrationPath($name);

        $this->delete($path);

        foreach ($fields as $field)
        {
            $this->destroyFieldMigrationForTable($field, $name);
        }
    }
488936
public function removeConfiguration(string $name): void
	{
		unset($this->configurations[$name], $this->connections[$name]);
	}