Commit cc94d2e8 authored by Pastor Mickaël's avatar Pastor Mickaël
Browse files

Related to #415 -> remove useless function

parent 81a09397
......@@ -181,22 +181,6 @@ class ReviewsController extends AppController
$this->set('_serialize', ['review']);
}
/**
* Returns all reviews attached to the specified software.
* @param integer $id
*/
public function getReviewsBySoftwareId($id)
{
if ($id != null && $this->request->is('get') && $this->response->type('json')) {
$reviews = $this->Reviews->find('all', [
'conditions' => ['Reviews.software_id =' => $id]
]);
$this->set(compact('reviews', 'id'));
$this->set('_serialize', ['reviews', 'id']);
}
}
/**
* Delete method
*
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment