Skip to content

Commit 40ea713

Browse files
committed
controllers\Items\Sync: drop extra stats method
This was accidentally left here in 900236e.
1 parent 92e9dc2 commit 40ea713

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

src/controllers/Items/Sync.php

-30
Original file line numberDiff line numberDiff line change
@@ -41,36 +41,6 @@ public function __construct(Authentication $authentication, \daos\Items $itemsDa
4141
$this->view = $view;
4242
}
4343

44-
/**
45-
* returns current basic stats
46-
* json
47-
*
48-
* @return void
49-
*/
50-
public function stats() {
51-
$this->authentication->needsLoggedInOrPublicMode();
52-
53-
$stats = $this->itemsDao->stats();
54-
55-
$tags = $this->tagsDao->getWithUnread();
56-
57-
foreach ($tags as $tag) {
58-
if (strpos($tag['tag'], '#') !== 0) {
59-
continue;
60-
}
61-
$stats['unread'] -= $tag['unread'];
62-
}
63-
64-
if (array_key_exists('tags', $_GET) && $_GET['tags'] == 'true') {
65-
$stats['tagshtml'] = $this->tagsController->renderTags($tags);
66-
}
67-
if (array_key_exists('sources', $_GET) && $_GET['sources'] == 'true') {
68-
$stats['sourceshtml'] = $this->sourcesController->renderSources($this->sourcesDao->getWithUnread());
69-
}
70-
71-
$this->view->jsonSuccess($stats);
72-
}
73-
7444
/**
7545
* returns updated database info (stats, item statuses)
7646
* json

0 commit comments

Comments
 (0)