Remove unused PhabricatorMainMenuGroupView class
Summary: This class is no longer used after D11125. Test Plan: `grep` Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11170
This commit is contained in:
@@ -1920,7 +1920,6 @@ phutil_register_library_map(array(
|
|||||||
'PhabricatorMailingListsController' => 'applications/mailinglists/controller/PhabricatorMailingListsController.php',
|
'PhabricatorMailingListsController' => 'applications/mailinglists/controller/PhabricatorMailingListsController.php',
|
||||||
'PhabricatorMailingListsEditController' => 'applications/mailinglists/controller/PhabricatorMailingListsEditController.php',
|
'PhabricatorMailingListsEditController' => 'applications/mailinglists/controller/PhabricatorMailingListsEditController.php',
|
||||||
'PhabricatorMailingListsListController' => 'applications/mailinglists/controller/PhabricatorMailingListsListController.php',
|
'PhabricatorMailingListsListController' => 'applications/mailinglists/controller/PhabricatorMailingListsListController.php',
|
||||||
'PhabricatorMainMenuGroupView' => 'view/page/menu/PhabricatorMainMenuGroupView.php',
|
|
||||||
'PhabricatorMainMenuSearchView' => 'view/page/menu/PhabricatorMainMenuSearchView.php',
|
'PhabricatorMainMenuSearchView' => 'view/page/menu/PhabricatorMainMenuSearchView.php',
|
||||||
'PhabricatorMainMenuView' => 'view/page/menu/PhabricatorMainMenuView.php',
|
'PhabricatorMainMenuView' => 'view/page/menu/PhabricatorMainMenuView.php',
|
||||||
'PhabricatorManagementWorkflow' => 'infrastructure/management/PhabricatorManagementWorkflow.php',
|
'PhabricatorManagementWorkflow' => 'infrastructure/management/PhabricatorManagementWorkflow.php',
|
||||||
@@ -5110,7 +5109,6 @@ phutil_register_library_map(array(
|
|||||||
'PhabricatorMailingListsController' => 'PhabricatorController',
|
'PhabricatorMailingListsController' => 'PhabricatorController',
|
||||||
'PhabricatorMailingListsEditController' => 'PhabricatorMailingListsController',
|
'PhabricatorMailingListsEditController' => 'PhabricatorMailingListsController',
|
||||||
'PhabricatorMailingListsListController' => 'PhabricatorMailingListsController',
|
'PhabricatorMailingListsListController' => 'PhabricatorMailingListsController',
|
||||||
'PhabricatorMainMenuGroupView' => 'AphrontView',
|
|
||||||
'PhabricatorMainMenuSearchView' => 'AphrontView',
|
'PhabricatorMainMenuSearchView' => 'AphrontView',
|
||||||
'PhabricatorMainMenuView' => 'AphrontView',
|
'PhabricatorMainMenuView' => 'AphrontView',
|
||||||
'PhabricatorManagementWorkflow' => 'PhutilArgumentWorkflow',
|
'PhabricatorManagementWorkflow' => 'PhutilArgumentWorkflow',
|
||||||
|
|||||||
@@ -1,39 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
final class PhabricatorMainMenuGroupView extends AphrontView {
|
|
||||||
|
|
||||||
private $collapsible = true;
|
|
||||||
private $classes = array();
|
|
||||||
|
|
||||||
public function addClass($class) {
|
|
||||||
$this->classes[] = $class;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setCollapsible($collapsible) {
|
|
||||||
$this->collapsible = $collapsible;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function render() {
|
|
||||||
$classes = array(
|
|
||||||
'phabricator-main-menu-group',
|
|
||||||
);
|
|
||||||
|
|
||||||
if ($this->collapsible) {
|
|
||||||
$classes[] = 'phabricator-main-menu-collapsible';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($this->classes) {
|
|
||||||
$classes = array_merge($classes, $this->classes);
|
|
||||||
}
|
|
||||||
|
|
||||||
return phutil_tag(
|
|
||||||
'div',
|
|
||||||
array(
|
|
||||||
'class' => implode(' ', $classes),
|
|
||||||
),
|
|
||||||
$this->renderChildren());
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user