summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2021-06-08 14:14:42 +0200
committerSimon Rettberg2021-06-08 14:14:42 +0200
commitcc3be07e2c945828f30d3148d9fc1f653a8e54f6 (patch)
tree68bc4785e1a49829446b92be3cd1d4f26d99b406
parentModerize Database handling (diff)
downloadslx-admin-cc3be07e2c945828f30d3148d9fc1f653a8e54f6.tar.gz
slx-admin-cc3be07e2c945828f30d3148d9fc1f653a8e54f6.tar.xz
slx-admin-cc3be07e2c945828f30d3148d9fc1f653a8e54f6.zip
[statistics] Remove dead code
-rw-r--r--modules-available/statistics/page.inc.php20
1 files changed, 0 insertions, 20 deletions
diff --git a/modules-available/statistics/page.inc.php b/modules-available/statistics/page.inc.php
index 6224d69c..a16461f4 100644
--- a/modules-available/statistics/page.inc.php
+++ b/modules-available/statistics/page.inc.php
@@ -236,29 +236,9 @@ class Page_Statistics extends Page
return;
}
- $sortColumn = Request::any('sortColumn');
- $sortDirection = Request::any('sortDirection');
-
- $filters = StatisticsFilter::parseQuery();
- $filterSet = new StatisticsFilterSet($filters);
- $filterSet->setSort($sortColumn, $sortDirection);
-
- if (!$filterSet->setAllowedLocationsFromPermission('view.' . $this->show)) {
- Message::addError('main.no-permission');
- Util::redirect('?do=main');
- }
Message::addError('main.value-invalid', 'show', $this->show);
}
- private function redirectFirst($where, $join, $args)
- {
- // TODO Annoying at times, restore this?
- $res = Database::queryFirst("SELECT machineuuid FROM machine $join WHERE ($where) LIMIT 1", $args);
- if ($res !== false) {
- Util::redirect('?do=statistics&uuid=' . $res['machineuuid']);
- }
- }
-
protected function doAjax()
{
if (!User::load())