Skip to content

Commit

Permalink
TIM-96: Delete unused code in Controller
Browse files Browse the repository at this point in the history
  • Loading branch information
tivvie authored and CybotTM committed Apr 18, 2024
1 parent 45d8886 commit 68d3ffb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 58 deletions.
21 changes: 0 additions & 21 deletions src/Netresearch/TimeTrackerBundle/Controller/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,6 @@
*/
class AdminController extends BaseController
{
/**
* @param Request $request
* @return Response
* @throws \ReflectionException
*/
public function getAllProjectsAction(Request $request)
{
if (!$this->checkLogin($request)) {
return $this->getFailedLoginResponse();
}

$result = $this->getDoctrine()->getRepository('NetresearchTimeTrackerBundle:Project')->findAll();

$data = [];
foreach ($result as $project) {
$data[] = ['project' => $project->toArray()];
}

return new JsonResponse($data);
}

/**
* @param Request $request
* @return Response
Expand Down
37 changes: 0 additions & 37 deletions src/Netresearch/TimeTrackerBundle/Controller/UserController.php

This file was deleted.

0 comments on commit 68d3ffb

Please sign in to comment.