Skip to content

Commit

Permalink
chore: Remove some unused methods
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Feb 17, 2023
1 parent afcd226 commit 29d21e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 21 deletions.
3 changes: 0 additions & 3 deletions lib/Db/BoardMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,6 @@ public function find($id, $withLabels = false, $withAcl = false): Board {
$this->boardCache[$id] = $this->findEntity($qb);
}

// FIXME is this necessary? it was NOT done with the old mapper
// $this->mapOwner($board);

// Add labels
if ($withLabels && $this->boardCache[$id]->getLabels() === null) {
$labels = $this->labelMapper->findAll($id);
Expand Down
21 changes: 3 additions & 18 deletions lib/Service/BoardService.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,23 +177,12 @@ public function find($boardId, $fullDetails = true) {
/** @var Board $board */
$board = $this->boardMapper->find($boardId, true, true);
[$board] = array_values($this->enrichBoards([$board], $fullDetails));
$this->boardsCache[$boardId] = $board;
if ($fullDetails) {
$this->boardsCache[$boardId] = $board;
}
return $board;
}

/**
* @return array
*/
private function getBoardPrerequisites() {
$groups = $this->groupManager->getUserGroupIds(
$this->userManager->get($this->userId)
);
return [
'user' => $this->userId,
'groups' => $groups
];
}

/**
* @param $mapper
* @param $id
Expand Down Expand Up @@ -713,10 +702,6 @@ public function getBoardUrl($endpoint) {
return $this->urlGenerator->linkToRouteAbsolute('deck.page.index') . '#' . $endpoint;
}

private function clearBoardsCache() {
$this->boardsCache = null;
}

/**
* Clean a given board data from the Cache
*/
Expand Down

0 comments on commit 29d21e0

Please sign in to comment.