Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14380178
D11125.id26706.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D11125.id26706.diff
View Options
diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php
--- a/src/__phutil_library_map__.php
+++ b/src/__phutil_library_map__.php
@@ -1887,7 +1887,6 @@
'PhabricatorMailingListsEditController' => 'applications/mailinglists/controller/PhabricatorMailingListsEditController.php',
'PhabricatorMailingListsListController' => 'applications/mailinglists/controller/PhabricatorMailingListsListController.php',
'PhabricatorMainMenuGroupView' => 'view/page/menu/PhabricatorMainMenuGroupView.php',
- 'PhabricatorMainMenuIconView' => 'view/page/menu/PhabricatorMainMenuIconView.php',
'PhabricatorMainMenuSearchView' => 'view/page/menu/PhabricatorMainMenuSearchView.php',
'PhabricatorMainMenuView' => 'view/page/menu/PhabricatorMainMenuView.php',
'PhabricatorManagementWorkflow' => 'infrastructure/management/PhabricatorManagementWorkflow.php',
@@ -5060,7 +5059,6 @@
'PhabricatorMailingListsEditController' => 'PhabricatorMailingListsController',
'PhabricatorMailingListsListController' => 'PhabricatorMailingListsController',
'PhabricatorMainMenuGroupView' => 'AphrontView',
- 'PhabricatorMainMenuIconView' => 'AphrontView',
'PhabricatorMainMenuSearchView' => 'AphrontView',
'PhabricatorMainMenuView' => 'AphrontView',
'PhabricatorManagementWorkflow' => 'PhutilArgumentWorkflow',
diff --git a/src/view/page/menu/PhabricatorMainMenuIconView.php b/src/view/page/menu/PhabricatorMainMenuIconView.php
deleted file mode 100644
--- a/src/view/page/menu/PhabricatorMainMenuIconView.php
+++ /dev/null
@@ -1,76 +0,0 @@
-<?php
-
-final class PhabricatorMainMenuIconView extends AphrontView {
-
- private $classes = array();
- private $href;
- private $name;
- private $workflow;
- private $style;
-
- public function setName($name) {
- $this->name = $name;
- return $this;
- }
-
- public function setWorkflow($workflow) {
- $this->workflow = $workflow;
- return $this;
- }
-
- public function getName() {
- return $this->name;
- }
-
- public function setHref($href) {
- $this->href = $href;
- return $this;
- }
-
- public function getHref() {
- return $this->href;
- }
-
- public function addClass($class) {
- $this->classes[] = $class;
- return $this;
- }
-
- public function addStyle($style) {
- $this->style = $style;
- return $this;
- }
-
- public function render() {
- $name = $this->getName();
- $href = $this->getHref();
-
- $classes = $this->classes;
- $classes[] = 'phabricator-main-menu-icon';
-
- $label = javelin_tag(
- 'a',
- array(
- 'href' => $href,
- 'class' => 'phabricator-main-menu-icon-label',
- ),
- $name);
-
- $item = javelin_tag(
- 'a',
- array(
- 'href' => $href,
- 'class' => implode(' ', $classes),
- 'style' => $this->style,
- 'sigil' => $this->workflow ? 'workflow' : null,
- ),
- '');
-
- $group = new PhabricatorMainMenuGroupView();
- $group->appendChild($item);
- $group->appendChild($label);
-
- return $group->render();
- }
-
-}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 22, 3:38 AM (20 h, 16 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6917324
Default Alt Text
D11125.id26706.diff (3 KB)
Attached To
Mode
D11125: Remove unused class
Attached
Detach File
Event Timeline
Log In to Comment