From cedef71d67c07dc85f408a0a5b1ee87e1df0a424 Mon Sep 17 00:00:00 2001 From: Hassan Khan Date: Tue, 12 Nov 2013 01:44:13 +0000 Subject: [PATCH] Removed ``default_route()`` method --- library/Zepto/Router.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/library/Zepto/Router.php b/library/Zepto/Router.php index da2ee9d..ef6dfa5 100644 --- a/library/Zepto/Router.php +++ b/library/Zepto/Router.php @@ -154,21 +154,6 @@ public function __construct($url = null) $this->url_clean = $this->__get_clean_url($this->url_dirty); } - /** - * If the router cannot match the current URL to any of the given routes, - * the function passed to this method will be executed instead. This would - * be useful for displaying a 404 page for example. - * - * @param Callable $callback - * @return self - */ - public function default_route($callback) - { - $this->default_route = $callback; - - return $this; - } - /** * Tries to match one of the URL routes to the current URL, otherwise * execute the default function and return false.