Skip to content

Commit

Permalink
Unused variables in Controller removed
Browse files Browse the repository at this point in the history
  • Loading branch information
evilbloodydemon committed Apr 22, 2011
1 parent cebcd64 commit d484d90
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions lib/Cake/Controller/Component/AclComponent.php
Expand Up @@ -308,9 +308,6 @@ public function check($aro, $aco, $action = "*") {
return false;
}

$aroNode = $aroPath[0];
$acoNode = $acoPath[0];

if ($action != '*' && !in_array('_' . $action, $permKeys)) {
trigger_error(__d('cake_dev', "ACO permissions key %s does not exist in DbAcl::check()", $action), E_USER_NOTICE);
return false;
Expand Down
1 change: 0 additions & 1 deletion lib/Cake/Controller/Component/RequestHandlerComponent.php
Expand Up @@ -565,7 +565,6 @@ public function respondAs($type, $options = array()) {
$defaults = array('index' => null, 'charset' => null, 'attachment' => false);
$options = $options + $defaults;

$cType = null;
if (strpos($type, '/') === false) {
$cType = $this->response->getMimeType($type);
if ($cType === false) {
Expand Down
2 changes: 0 additions & 2 deletions lib/Cake/Controller/Controller.php
Expand Up @@ -732,8 +732,6 @@ public function header($status) {
* @link http://book.cakephp.org/view/979/set
*/
public function set($one, $two = null) {
$data = array();

if (is_array($one)) {
if (is_array($two)) {
$data = array_combine($one, $two);
Expand Down

0 comments on commit d484d90

Please sign in to comment.