Remove unused class ViewableMenu
authorMatthias Schmidt <gravatronics@live.com>
Sun, 22 May 2016 09:38:28 +0000 (11:38 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 22 May 2016 09:38:28 +0000 (11:38 +0200)
wcfsetup/install/files/lib/data/menu/ViewableMenu.class.php [deleted file]

diff --git a/wcfsetup/install/files/lib/data/menu/ViewableMenu.class.php b/wcfsetup/install/files/lib/data/menu/ViewableMenu.class.php
deleted file mode 100644 (file)
index 411ae26..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-namespace wcf\data\menu;
-use wcf\data\menu\item\MenuItemNodeTree;
-use wcf\data\DatabaseObjectDecorator;
-use wcf\system\WCF;
-
-class ViewableMenu extends DatabaseObjectDecorator {
-       /**
-        * @var MenuItemNodeTree
-        */
-       protected $menuItems;
-       
-       public function hasContent() {
-               // TODO
-               return true;
-       }
-       
-       public function getContent() {
-               return WCF::getTPL()->fetch('__menu', 'wcf', ['menuItems' => $this->menuItems->getNodeList()]);
-       }
-       
-       protected function getMenuItems() {
-               if ($this->menuItems === null) {
-                       $this->menuItems = MenuCache::getInstance()->getMenuItemsByMenuID($this->object->menuID);
-               }
-               
-               return $this->menuItems;
-       }
-}