Unused variables in Controller removed

This commit is contained in:
evilbloodydemon 2011-04-22 23:41:46 +04:00
parent cebcd64090
commit d484d90fe5
3 changed files with 0 additions and 6 deletions

View file

@ -308,9 +308,6 @@ class DbAcl extends Object implements AclInterface {
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;

View file

@ -565,7 +565,6 @@ class RequestHandlerComponent extends Component {
$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) {

View file

@ -732,8 +732,6 @@ class Controller extends Object {
* @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);