From 4d199cf8a8212182c3b3cfcabc0c79345b905f80 Mon Sep 17 00:00:00 2001 From: mark_story Date: Sat, 9 Oct 2010 20:53:10 -0400 Subject: [PATCH] Removing Shell::_loadDbConfig() and Shell::$DbConfig They did not make sense in Shell as no other core shells even use these properties/methods. --- cake/console/libs/shell.php | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/cake/console/libs/shell.php b/cake/console/libs/shell.php index d0fd9022d..720cfcc7e 100644 --- a/cake/console/libs/shell.php +++ b/cake/console/libs/shell.php @@ -45,15 +45,6 @@ class Shell extends Object { */ public $interactive = true; -/** - * Holds the DATABASE_CONFIG object for the app. Null if database.php could not be found, - * or the app does not exist. - * - * @var DATABASE_CONFIG - * @access public - */ - public $DbConfig = null; - /** * Contains command switches parsed from the command line. * @@ -236,22 +227,6 @@ class Shell extends Object { $this->hr(); } -/** - * Loads database file and constructs DATABASE_CONFIG class - * makes $this->DbConfig available to subclasses - * - * @return bool - */ - protected function _loadDbConfig() { - if (config('database') && class_exists('DATABASE_CONFIG')) { - $this->DbConfig =& new DATABASE_CONFIG(); - return true; - } - $this->err('Database config could not be loaded.'); - $this->out('Run `bake` to create the database configuration.'); - return false; - } - /** * if public $uses = true * Loads AppModel file and constructs AppModel class