Permalink
Browse files

Removed debug lines inadvertently left in last commit.

  • Loading branch information...
mchurch
mchurch committed Feb 28, 2005
1 parent 89c0e63 commit be69cefb903b5e2357d5cfdb2548b43b5dd5d7bf
Showing with 0 additions and 34 deletions.
  1. +0 −17 mod/forum/index.php
  2. +0 −17 mod/forum/view.php
View
@@ -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 @@ function benchmark() {
print_footer($course);
-/// Page timer:
-if ($CFG->debug and $CFG->debug > 7) echo 'Page took: ' . round((benchmark() - $start), 5) . ' seconds.';
-/// /Page timer.
-
?>
View
@@ -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 @@ function benchmark() {
print_footer($course);
-/// Page timer:
-if ($CFG->debug and $CFG->debug > 7) echo 'Page took: ' . round((benchmark() - $start), 5) . ' seconds.';
-/// /Page timer.
-
?>

0 comments on commit be69cef

Please sign in to comment.