diff --git a/library/Icinga/Model/DashboardOverride.php b/library/Icinga/Model/DashboardOverride.php deleted file mode 100644 index d498539dd..000000000 --- a/library/Icinga/Model/DashboardOverride.php +++ /dev/null @@ -1,53 +0,0 @@ - new Expression('0') - ]; - } - - public function getMetaData() - { - return ['priority' => t('Dashboard Priority Order')]; - } - - public function getSearchColumns() - { - return ['name']; - } - - public function getDefaultSort() - { - return 'dashboard.name'; - } - - public function createRelations(Relations $relations) - { - $relations->belongsTo('dashboard', Pane::class); - } -} diff --git a/library/Icinga/Web/HomeMenu.php b/library/Icinga/Web/HomeMenu.php deleted file mode 100644 index 7bd640645..000000000 --- a/library/Icinga/Web/HomeMenu.php +++ /dev/null @@ -1,63 +0,0 @@ -initHome(); - } - - public function initHome() - { - $user = Dashboard::getUser(); - $dashboardItem = $this->getItem('dashboard'); - - $homes = Home::on(Dashboard::getConn()); - $homes->filter(Filter::equal('username', $user->getUsername())); - - foreach ($homes as $home) { - $dashboardHome = new DashboardHomeItem($home->name, [ - 'uuid' => $home->id, - 'label' => t($home->label), - 'priority' => $home->priority, - 'type' => $home->type, - ]); - - $dashboardItem->addChild($dashboardHome); - } - } - - /** - * Load dashboard homes form the navigation menu - * - * @return DashboardHome[] - */ - public function loadHomes() - { - $homes = []; - foreach ($this->getItem('dashboard')->getChildren() as $child) { - if (! $child instanceof DashboardHomeItem) { - continue; - } - - $homes[$child->getName()] = DashboardHome::create($child); - } - - return $homes; - } -}