Skip to content
Snippets Groups Projects
Unverified Commit d40d87e1 authored by Christoph Wurst's avatar Christoph Wurst
Browse files

Remove unused buld loading mechanism

parent e138bd85
No related branches found
No related tags found
No related merge requests found
......@@ -114,12 +114,7 @@ class MessagesController extends Controller {
* @param array $ids
* @return JSONResponse
*/
public function index($accountId, $folderId, $cursor = null, $filter=null, $ids=null) {
if (!is_null($ids)) {
$ids = explode(',', $ids);
return $this->loadMultiple($accountId, $folderId, $ids);
}
public function index($accountId, $folderId, $cursor = null, $filter=null) {
$mailBox = $this->getFolder($accountId, $folderId);
$this->logger->debug("loading messages of folder <$folderId>");
......@@ -440,22 +435,6 @@ class MessagesController extends Controller {
return $this->urlGenerator->getAbsoluteURL($htmlBodyUrl);
}
/**
* @param integer $accountId
* @param string $folderId
*/
private function loadMultiple($accountId, $folderId, $ids) {
$messages = array_map(function($id) use ($accountId, $folderId){
try {
return $this->loadMessage($accountId, $folderId, $id);
} catch (DoesNotExistException $ex) {
return null;
}
}, $ids);
return $messages;
}
/**
* @param int $accountId
* @param string $folderId
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment