Skip to content
Permalink
Browse files

Remove another unused method.

BeforeRedirect filters are much simpler now and this method is no longer
needed.

Refs #2375
  • Loading branch information...
markstory committed Nov 23, 2013
1 parent dc2a9cc commit 5cc2aad07b0fee6459139f24c0f2d711433c643c
Showing with 0 additions and 24 deletions.
  1. +0 −24 Cake/Controller/Controller.php
@@ -718,30 +718,6 @@ public function redirect($url, $status = null, $exit = true) {
}
}
/**
* Parse beforeRedirect Response
*
* @param mixed $response Response from beforeRedirect callback
* @param string|array $url The same value of beforeRedirect
* @param integer $status The same value of beforeRedirect
* @param boolean $exit The same value of beforeRedirect
* @return array Array with keys url, status and exit
*/
protected function _parseBeforeRedirect($response, $url, $status, $exit) {
if (is_array($response) && array_key_exists(0, $response)) {
foreach ($response as $resp) {
if (is_array($resp) && isset($resp['url'])) {
extract($resp, EXTR_OVERWRITE);
} elseif ($resp !== null) {
$url = $resp;
}
}
} elseif (is_array($response)) {
extract($response, EXTR_OVERWRITE);
}
return compact('url', 'status', 'exit');
}
/**
* Internally redirects one action to another. Does not perform another HTTP request unlike Controller::redirect()
*

0 comments on commit 5cc2aad

Please sign in to comment.
You can’t perform that action at this time.