From cab6528a481b4fb89e12500af567dc36ce89d27d Mon Sep 17 00:00:00 2001 From: Jaime Perez Crespo <jaime.perez@uninett.no> Date: Tue, 21 Apr 2015 11:36:49 +0200 Subject: [PATCH] Remove commented code. --- modules/metarefresh/lib/ARP.php | 3 --- modules/statistics/lib/Aggregator.php | 3 +-- modules/statistics/lib/StatDataset.php | 3 +-- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/modules/metarefresh/lib/ARP.php b/modules/metarefresh/lib/ARP.php index ddcfc8580..b9a9d7d98 100644 --- a/modules/metarefresh/lib/ARP.php +++ b/modules/metarefresh/lib/ARP.php @@ -29,8 +29,6 @@ class sspmod_metarefresh_ARP { $config = SimpleSAML_Configuration::getInstance(); include($config->getPathValue('attributemap', 'attributemap/') . $attributemap . '.php'); $this->attributes = $attributemap; - - # print_r($attributemap); exit; } private function surround($name) { @@ -64,7 +62,6 @@ class sspmod_metarefresh_ARP { foreach($this->metadata AS $metadata) { - #$print_r($metadata); exit; $xml .= $this->getEntryXML($metadata['metadata']); } diff --git a/modules/statistics/lib/Aggregator.php b/modules/statistics/lib/Aggregator.php index 0a566eb8c..6806724ca 100644 --- a/modules/statistics/lib/Aggregator.php +++ b/modules/statistics/lib/Aggregator.php @@ -150,7 +150,7 @@ class sspmod_statistics_Aggregator { if (isset($tresconfig['customDateHandler'])) $dh = $tresconfig['customDateHandler']; $timeslot = $datehandler['default']->toSlot($epoch, $tresconfig['slot']); - $fileslot = $datehandler[$dh]->toSlot($epoch, $tresconfig['fileslot']); //print_r($content); + $fileslot = $datehandler[$dh]->toSlot($epoch, $tresconfig['fileslot']); if (isset($rule['action']) && ($action !== $rule['action'])) continue; @@ -232,7 +232,6 @@ class sspmod_statistics_Aggregator { // The last slot. $maxslot = $slotlist[count($slotlist)-1]; - #print_r($slotlist); // Get start and end slot number within the file, based on the fileslot. $start = (int)$datehandler['default']->toSlot( diff --git a/modules/statistics/lib/StatDataset.php b/modules/statistics/lib/StatDataset.php index 1116ca17b..fab589d87 100644 --- a/modules/statistics/lib/StatDataset.php +++ b/modules/statistics/lib/StatDataset.php @@ -213,8 +213,7 @@ class sspmod_statistics_StatDataset { $dateformat_period = $this->timeresconfig->getValue('dateformat-period'); $dateformat_intra = $this->timeresconfig->getValue('dateformat-intra'); $axislabelint = $this->timeresconfig->getValue('axislabelint'); - - #$max = 25; + $xentries = count($this->results); $lastslot = 0; $i = 0; -- GitLab