Skip to content

Commit

Permalink
Remove superfluous code.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Dec 31, 2010
1 parent 81a8db1 commit d833dc1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions PHP/CodeCoverage/Report/HTML.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function process(PHP_CodeCoverage $coverage, $target)
$commonPath, NULL
);

$this->addItems($root, $items, $files);
$this->addItems($root, $items);

$this->renderDashboard(
$root, $target . 'index.dashboard.html', $this->options['title']
Expand Down Expand Up @@ -199,9 +199,8 @@ protected function renderDashboard(PHP_CodeCoverage_Report_HTML_Node_Directory $
/**
* @param PHP_CodeCoverage_Report_HTML_Node_Directory $root
* @param array $items
* @param array $files
*/
protected function addItems(PHP_CodeCoverage_Report_HTML_Node_Directory $root, array $items, array $files)
protected function addItems(PHP_CodeCoverage_Report_HTML_Node_Directory $root, array $items)
{
foreach ($items as $key => $value) {
if (substr($key, -2) == '/f') {
Expand All @@ -219,7 +218,7 @@ protected function addItems(PHP_CodeCoverage_Report_HTML_Node_Directory $root, a
}
} else {
$child = $root->addDirectory($key);
$this->addItems($child, $value, $files);
$this->addItems($child, $value);
}
}
}
Expand Down

0 comments on commit d833dc1

Please sign in to comment.