public function remove($method, $route)
	{
		if (!array_key_exists($method, $this->routes)) {
			return;
		}

		foreach ($this->routes[$method] as $key => $entry) {
			if ($entry->route == $route) {
				unset($this->routes[$method][$key]);
			}
		}

		if (count($this->routes[$method]) == 0) {
			unset($this->routes[$method]);
		}
	}
public function remove($method, $route)
	{
		if (!array_key_exists($method, $this->routes)) {
			return;
		}

		foreach ($this->routes[$method] as $key => $entry) {
			if ($entry->route == $route) {
				unset($this->routes[$method][$key]);
			}
		}

		if (count($this->routes[$method]) == 0) {
			unset($this->routes[$method]);
		}
	}
public function remove ( $ method , $ route ) { if ( ! array_key_exists ( $ method , $ this -> routes ) ) { return ; } foreach ( $ this -> routes [ $ method ] as $ key => $ entry ) { if ( $ entry -> route == $ route ) { unset ( $ this -> routes [ $ method ] [ $ key ] ) ; } } if ( count ( $ this -> routes [ $ method ] ) == 0 ) { unset ( $ this -> routes [ $ method ] ) ; } }
Removes the mapping for the specified route from the router map if present.

@param string $method
@param string $route
@return null
Removes the mapping for the specified route from the router map if present .