Removed debug lines inadvertently left in last commit.

This commit is contained in:
mchurch
2005-02-28 21:37:11 +00:00
parent 89c0e63faa
commit be69cefb90
2 changed files with 0 additions and 34 deletions
-17
View File
@@ -4,19 +4,6 @@
require_once("lib.php");
require_once("$CFG->libdir/rsslib.php");
/// Page timer:
if ($CFG->debug and $CFG->debug > 7) {
function benchmark() {
// microtime() outputs the seconds and the milli seconds
// separated with a space, so you have to explode it to
// access the parts independently
list($usec, $sec) = explode(' ', microtime());
return ((double)$usec + (double)$sec);
}
$start = benchmark();
}
/// /Page timer.
optional_variable($id); // course
if ($id) {
@@ -384,8 +371,4 @@ $start = benchmark();
print_footer($course);
/// Page timer:
if ($CFG->debug and $CFG->debug > 7) echo 'Page took: ' . round((benchmark() - $start), 5) . ' seconds.';
/// /Page timer.
?>
-17
View File
@@ -4,19 +4,6 @@
require_once("lib.php");
require_once("$CFG->libdir/rsslib.php");
/// Page timer:
if ($CFG->debug and $CFG->debug > 7) {
function benchmark() {
// microtime() outputs the seconds and the milli seconds
// separated with a space, so you have to explode it to
// access the parts independently
list($usec, $sec) = explode(' ', microtime());
return ((double)$usec + (double)$sec);
}
$start = benchmark();
}
/// /Page timer.
$id = optional_param('id', 0, PARAM_INT); // Course Module ID
$f = optional_param('f', 0, PARAM_INT); // Forum ID
$mode = optional_param('mode', 0, PARAM_INT); // Display mode (for single forum)
@@ -254,8 +241,4 @@ $start = benchmark();
print_footer($course);
/// Page timer:
if ($CFG->debug and $CFG->debug > 7) echo 'Page took: ' . round((benchmark() - $start), 5) . ' seconds.';
/// /Page timer.
?>