Remove unused variables and statements.

This commit is contained in:
Majna 2012-02-17 21:10:43 +01:00
parent c40d132f81
commit 0cd9a93e9e
12 changed files with 1 additions and 24 deletions

View file

@ -266,7 +266,6 @@ class ContainableBehavior extends ModelBehavior {
public function containments($Model, $contain, $containments = array(), $throwErrors = null) {
$options = array('className', 'joinTable', 'with', 'foreignKey', 'associationForeignKey', 'conditions', 'fields', 'order', 'limit', 'offset', 'unique', 'finderQuery', 'deleteQuery', 'insertQuery');
$keep = array();
$depth = array();
if ($throwErrors === null) {
$throwErrors = (empty($this->settings[$Model->alias]) ? true : $this->settings[$Model->alias]['notices']);
}

View file

@ -274,7 +274,7 @@ class TreeBehavior extends ModelBehavior {
} elseif (!$id) {
$id = null;
}
$name = $Model->alias;
extract($this->settings[$Model->alias]);
if (!is_null($overrideRecursive)) {