From e3b4406e094283d5332bd92038bd2e1c3c41c2c1 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Mon, 6 Jun 2016 12:51:30 +1000 Subject: [PATCH] CRM-18773 --- DB/DataObject.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/DB/DataObject.php b/DB/DataObject.php index 730b3aaf0..b60cbc59f 100644 --- a/DB/DataObject.php +++ b/DB/DataObject.php @@ -2471,21 +2471,6 @@ function _query($string) return $this->raiseError($result); } - /* CRM-3225 */ - if (function_exists('variable_get') && variable_get('dev_query', 0)) { - // this is for drupal devel module - // If devel.module query logging is enabled, prepend a comment with the username and calling function - // to the SQL string. - $bt = debug_backtrace(); - // t() may not be available yet so we don't wrap 'Anonymous' - $name = $user->uid ? $user->name : variable_get('anonymous', 'Anonymous'); - $query = $bt[3]['function'] ."\n/* ". $name .' */ '. str_replace("\n ", '', $string); - list($usec, $sec) = explode(' ', microtime()); - $stop = (float)$usec + (float)$sec; - $diff = $stop - $time; - $queries[] = array($query, $diff); - } - $action = strtolower(substr(trim($string),0,6)); if (!empty($_DB_DATAOBJECT['CONFIG']['debug']) || defined('CIVICRM_DEBUG_LOG_QUERY')) {