src/Chiron/Routing/Router.php
public function removeNamedRoute(string $name)
    {
        $route = $this->getNamedRoute($name);
        // no exception, route exists, now remove by id
        unset($this->routes[$route->getIdentifier()]);
    }
public function removeNamedRoute(string $name)
    {
        $route = $this->getNamedRoute($name);
        // no exception, route exists, now remove by id
        unset($this->routes[$route->getIdentifier()]);
    }
public function removeNamedRoute ( string $ name ) { $ route = $ this -> getNamedRoute ( $ name ) ; // no exception, route exists, now remove by id unset ( $ this -> routes [ $ route -> getIdentifier ( ) ] ) ; }
Remove named route.

@param string $name Route name

@throws \InvalidArgumentException If named route does not exist
Remove named route .