summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/libraries/Controller.php42
1 files changed, 0 insertions, 42 deletions
diff --git a/system/libraries/Controller.php b/system/libraries/Controller.php
index da5f2e072..afd963a7a 100644
--- a/system/libraries/Controller.php
+++ b/system/libraries/Controller.php
@@ -397,49 +397,7 @@ class Controller extends CI_Base {
$obj->db =& $DB;
}
// END _ci_init_database()
-
-
- // --------------------------------------------------------------------
-
- /**
- * Initialize Database Utilities Class
- *
- * @access private
- * @param mixed database platform
- * @param bool whether to return the object
- * @return void
- */
- function _ci_init_dbutil($db = '', $return = FALSE)
- {
- if ($this->_ci_is_loaded('dbutils') == TRUE AND $return == FALSE)
- {
- return;
- }
-
- if ($this->_ci_is_loaded('db') == FALSE)
- {
- $this->_ci_init_database();
- }
-
- require_once(BASEPATH.'database/DB_utility'.EXT);
- require_once(BASEPATH.'database/drivers/'.$this->db->dbdriver.'/'.$this->db->dbdriver.'_utility'.EXT);
-
- // Instantiate the DB adapter
- $driver = 'CI_DB_'.$this->db->dbdriver.'_utility';
- $DB = new $driver();
-
- if ($return === TRUE)
- {
- return $DB;
- }
-
- $obj =& get_instance();
- $obj->ci_is_loaded[] = 'dbutils';
- $obj->dbutil =& $DB;
- }
- // END _ci_init_database()
-
// --------------------------------------------------------------------
/**