Page MenuHomePhabricator

D12569.diff
No OneTemporary

D12569.diff

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
@@ -1150,7 +1150,6 @@
'PHUIButtonView' => 'view/phui/PHUIButtonView.php',
'PHUICalendarListView' => 'view/phui/calendar/PHUICalendarListView.php',
'PHUICalendarMonthView' => 'view/phui/calendar/PHUICalendarMonthView.php',
- 'PHUICalendarWidgetView' => 'view/phui/calendar/PHUICalendarWidgetView.php',
'PHUIColorPalletteExample' => 'applications/uiexample/examples/PHUIColorPalletteExample.php',
'PHUICrumbView' => 'view/phui/PHUICrumbView.php',
'PHUICrumbsView' => 'view/phui/PHUICrumbsView.php',
@@ -4449,7 +4448,6 @@
'PHUIButtonView' => 'AphrontTagView',
'PHUICalendarListView' => 'AphrontTagView',
'PHUICalendarMonthView' => 'AphrontView',
- 'PHUICalendarWidgetView' => 'AphrontTagView',
'PHUIColorPalletteExample' => 'PhabricatorUIExample',
'PHUICrumbView' => 'AphrontView',
'PHUICrumbsView' => 'AphrontView',
diff --git a/src/view/phui/calendar/PHUICalendarWidgetView.php b/src/view/phui/calendar/PHUICalendarWidgetView.php
deleted file mode 100644
--- a/src/view/phui/calendar/PHUICalendarWidgetView.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-
-final class PHUICalendarWidgetView extends AphrontTagView {
-
- private $header;
- private $list;
-
- public function setHeader($date) {
- $this->header = $date;
- return $this;
- }
-
- public function setCalendarList(PHUICalendarListView $list) {
- $this->list = $list;
- return $this;
- }
-
- protected function getTagName() {
- return 'div';
- }
-
- protected function getTagAttributes() {
- require_celerity_resource('phui-calendar-list-css');
- return array('class' => 'phui-calendar-list-container');
- }
-
- protected function getTagContent() {
-
- $header = id(new PHUIHeaderView())
- ->setHeader($this->header);
-
- $box = id(new PHUIObjectBoxView())
- ->setHeader($header)
- ->setFlush(true)
- ->appendChild($this->list);
-
- return $box;
- }
-}

File Metadata

Mime Type
text/plain
Expires
Oct 19 2024, 2:37 PM (4 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6718694
Default Alt Text
D12569.diff (2 KB)

Event Timeline