Removing unused code

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7796 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2008-10-29 07:35:48 +00:00
parent 6624d41ecd
commit a90ade78a9

View file

@ -94,7 +94,6 @@ class ClassRegistry {
function &init($class, $type = null) {
$_this =& ClassRegistry::getInstance();
$id = $false = false;
$table = $ds = $alias = $plugin = $options = null;
$true = true;
if (!$type) {
@ -116,8 +115,8 @@ class ClassRegistry {
if (is_array($settings)) {
$plugin = $pluginPath = null;
$settings = array_merge($defaults, $settings);
$class = $settings['class'];
if (strpos($class, '.') !== false) {
list($plugin, $class) = explode('.', $class);
$pluginPath = $plugin . '.';