From af7ba04628a676b0335ec99819b8af91967fbcff Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 6 Jul 2011 14:50:48 -0700 Subject: [PATCH] Trimming comment bloat in Redirect class. --- system/redirect.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/system/redirect.php b/system/redirect.php index 70d764bb..1c312b39 100644 --- a/system/redirect.php +++ b/system/redirect.php @@ -60,10 +60,6 @@ public static function to_secure($url, $method = 'location', $status = 302) */ public function with($key, $value) { - // ---------------------------------------------------- - // Since this method uses sessions, make sure a driver - // has been specified in the configuration file. - // ---------------------------------------------------- if (Config::get('session.driver') != '') { Session::flash($key, $value); @@ -79,17 +75,13 @@ public static function __callStatic($method, $parameters) { $parameters = (isset($parameters[0])) ? $parameters[0] : array(); - // ---------------------------------------------------- // Dynamically redirect to a secure route URL. - // ---------------------------------------------------- if (strpos($method, 'to_secure_') === 0) { return static::to(URL::to_route(substr($method, 10), $parameters, true)); } - // ---------------------------------------------------- // Dynamically redirect a route URL. - // ---------------------------------------------------- if (strpos($method, 'to_') === 0) { return static::to(URL::to_route(substr($method, 3), $parameters));