From 3aaea995e9f247ca3f870c5de5e585cf0ce63230 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 28 Oct 2009 09:16:52 +0000 Subject: [PATCH] MINOR Removed unnecessary profiler_start()/profiler_stop() global methods from Profiler.php git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@90321 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- profiler/Profiler.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/profiler/Profiler.php b/profiler/Profiler.php index 6bbed1a3a..0254bb453 100644 --- a/profiler/Profiler.php +++ b/profiler/Profiler.php @@ -231,15 +231,4 @@ class Profiler { $this->running[$name] += $this->elapsedTime($name); } } - -function profiler_start($name) { - if (array_key_exists("midcom_profiler",$GLOBALS)) - $GLOBALS["midcom_profiler"]->startTimer ($name); -} - -function profiler_stop($name) { - if (array_key_exists("midcom_profiler",$GLOBALS)) - $GLOBALS["midcom_profiler"]->stopTimer ($name); -} - ?> \ No newline at end of file