Skip to content

Commit

Permalink
Removed useless private function get_latest_report
Browse files Browse the repository at this point in the history
Conflicts:
	app/Model/Report.php
  • Loading branch information
m0hamed committed Aug 2, 2013
1 parent f315f19 commit 6078210
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions app/Model/Report.php
Expand Up @@ -117,14 +117,7 @@ private function getSimplePhpVersion($phpVersion) {
return $simpleVersion;
}

private function get_latest_report() {
$report = $this->find("first", array(
'conditions' => $this->relatedReportsConditions(),
'order' => 'created desc'
));
}

private function relatedReportsConditions() {
protected function _relatedReportsConditions() {
$conditions = array(array('related_report_id' => $this->id));

if ($this->data["Report"]["related_report_id"]) {
Expand Down

0 comments on commit 6078210

Please sign in to comment.