From 53302b2654eccbf0d6a6f75e7c92d17e907c440e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 2 Oct 2010 02:52:21 +0000 Subject: - Patch #870922 by David_Rothstein: removing unnecessary code. --- includes/update.inc | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'includes') diff --git a/includes/update.inc b/includes/update.inc index 51504a811..60eadfbc2 100644 --- a/includes/update.inc +++ b/includes/update.inc @@ -793,16 +793,9 @@ function update_do_one($module, $number, $dependency_map, &$context) { return; } - if (!isset($context['log'])) { - $context['log'] = variable_get('update_log_queries', 0); - } - $ret = array(); if (function_exists($function)) { try { - if ($context['log']) { - Database::startLog($function); - } $ret['results']['query'] = $function($context['sandbox']); $ret['results']['success'] = TRUE; } @@ -816,10 +809,6 @@ function update_do_one($module, $number, $dependency_map, &$context) { $variables = _drupal_decode_exception($e); $ret['#abort'] = array('success' => FALSE, 'query' => t('%type: %message in %function (line %line of %file).', $variables)); } - - if ($context['log']) { - $ret['queries'] = Database::getLog($function); - } } if (isset($context['sandbox']['#finished'])) { -- cgit v1.2.3