Skip to content

Commit

Permalink
Removing Shell::_loadDbConfig() and Shell::$DbConfig
Browse files Browse the repository at this point in the history
They did not make sense in Shell as no other core shells even use these
properties/methods.
  • Loading branch information
markstory committed Oct 14, 2010
1 parent 0d522f3 commit 4d199cf
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions cake/console/libs/shell.php
Expand Up @@ -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.
*
Expand Down Expand Up @@ -236,22 +227,6 @@ protected function _welcome() {
$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
Expand Down

0 comments on commit 4d199cf

Please sign in to comment.