summaryrefslogtreecommitdiffstats
path: root/system/core/Common.php
diff options
context:
space:
mode:
authorGreg Aker <greg.aker@ellislab.com>2010-11-10 22:07:13 +0100
committerGreg Aker <greg.aker@ellislab.com>2010-11-10 22:07:13 +0100
commit579fde36e4f8cc294edec4fd4eefe06f4df09dda (patch)
tree4d3e9c8d65afb065eab738783b8361004754729d /system/core/Common.php
parent58fdee85181b05c7303b1d2a5a26cb2f4e00f03f (diff)
parentc0af6c044570e0561afdea109f4101dba04e2510 (diff)
Automated merge with http://hg.ellislab.com/CodeIgniterNoPhp4/
Diffstat (limited to 'system/core/Common.php')
-rw-r--r--system/core/Common.php21
1 files changed, 1 insertions, 20 deletions
diff --git a/system/core/Common.php b/system/core/Common.php
index 56fe713bd..6a3d5ac0a 100644
--- a/system/core/Common.php
+++ b/system/core/Common.php
@@ -163,29 +163,10 @@
// Keep track of what we just loaded
is_loaded($class);
- $_classes[$class] =& instantiate_class(new $name());
+ $_classes[$class] = new $name();
return $_classes[$class];
}
-// ------------------------------------------------------------------------
-
-/**
- * Instantiate Class
- *
- * Returns a new class object by reference, used by load_class() and the DB class.
- * Required to retain PHP 4 compatibility and also not make PHP 5.3 cry.
- *
- * Use: $obj =& instantiate_class(new Foo());
- *
- * @access public
- * @param object
- * @return object
- */
- function &instantiate_class(&$class_object)
- {
- return $class_object;
- }
-
// --------------------------------------------------------------------
/**