src/Collector.php
public function forget($method, $pattern)
    {
        if (strpos($pattern, "{") === false) {
               unset($this->statics[$method][$pattern]);
        } else unset($this->dynamics[$this->getDynamicIndex($method, $pattern)][$pattern]);
    }
public function forget($method, $pattern)
    {
        if (strpos($pattern, "{") === false) {
               unset($this->statics[$method][$pattern]);
        } else unset($this->dynamics[$this->getDynamicIndex($method, $pattern)][$pattern]);
    }
public function forget ( $ method , $ pattern ) { if ( strpos ( $ pattern , "{" ) === false ) { unset ( $ this -> statics [ $ method ] [ $ pattern ] ) ; } else unset ( $ this -> dynamics [ $ this -> getDynamicIndex ( $ method , $ pattern ) ] [ $ pattern ] ) ; }
Remove a route from collector.

@param string $method
@param string $pattern
Remove a route from collector .