From 8ce8a761efe9995c371727fdfe9b9e5d7d1b4592 Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Mon, 27 Apr 2015 21:20:34 +1000 Subject: [PATCH] Remove PHUICalendarWidgetView Summary: This class is unused after D11547. Test Plan: `grep` Reviewers: chad, epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D12569 --- src/__phutil_library_map__.php | 2 - .../phui/calendar/PHUICalendarWidgetView.php | 39 ------------------- 2 files changed, 41 deletions(-) delete mode 100644 src/view/phui/calendar/PHUICalendarWidgetView.php diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index 2e56722345..ca28b1cc14 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -1150,7 +1150,6 @@ phutil_register_library_map(array( '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 @@ phutil_register_library_map(array( '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 index d5e1d2d24a..0000000000 --- a/src/view/phui/calendar/PHUICalendarWidgetView.php +++ /dev/null @@ -1,39 +0,0 @@ -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; - } -}