Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2018-02-01 19:18:17 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2018-02-01 19:18:17 +0300
commitd40d87e1754c6d00da0321998411ec24dde4f58d (patch)
treeca6100f94491b3da839a1c486bca574dfaaac341 /lib/Controller/MessagesController.php
parente138bd85aeeaa662cd6af41e4e4515f69a90b44f (diff)
Remove unused buld loading mechanism
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Controller/MessagesController.php')
-rwxr-xr-xlib/Controller/MessagesController.php23
1 files changed, 1 insertions, 22 deletions
diff --git a/lib/Controller/MessagesController.php b/lib/Controller/MessagesController.php
index c32f75c71..1d91e332e 100755
--- a/lib/Controller/MessagesController.php
+++ b/lib/Controller/MessagesController.php
@@ -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>");
@@ -441,22 +436,6 @@ class MessagesController extends Controller {
}
/**
- * @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
* @param int $id