Remove dead and unused code.

This commit is contained in:
mark_story 2014-02-11 16:38:24 -05:00
parent 7a72431442
commit a5d50da040
16 changed files with 28 additions and 40 deletions

View file

@ -329,7 +329,7 @@ class ConsoleShell extends AppShell {
$command = str_replace($this->badCommandChars, "", $command);
// Do we have a valid model?
list($modelToCheck, $tmp) = explode('->', $command);
list($modelToCheck) = explode('->', $command);
if ($this->_isValidModel($modelToCheck)) {
$findCommand = "\$data = \$this->$command;";
@ -390,7 +390,7 @@ class ConsoleShell extends AppShell {
// Validate the model we're trying to save here
$command = strip_tags($command);
$command = str_replace($this->badCommandChars, "", $command);
list($modelToSave, $tmp) = explode("->", $command);
list($modelToSave) = explode("->", $command);
if ($this->_isValidModel($modelToSave)) {
// Extract the array of data we are trying to build