diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index e2586354e8..9d7b783091 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -3504,7 +3504,6 @@ phutil_register_library_map(array( 'PhabricatorNotificationServersConfigType' => 'applications/notification/config/PhabricatorNotificationServersConfigType.php', 'PhabricatorNotificationStatusView' => 'applications/notification/view/PhabricatorNotificationStatusView.php', 'PhabricatorNotificationTestController' => 'applications/notification/controller/PhabricatorNotificationTestController.php', - 'PhabricatorNotificationTestFeedStory' => 'applications/notification/feed/PhabricatorNotificationTestFeedStory.php', 'PhabricatorNotificationUIExample' => 'applications/uiexample/examples/PhabricatorNotificationUIExample.php', 'PhabricatorNotificationsApplication' => 'applications/notification/application/PhabricatorNotificationsApplication.php', 'PhabricatorNotificationsSetting' => 'applications/settings/setting/PhabricatorNotificationsSetting.php', @@ -9323,7 +9322,6 @@ phutil_register_library_map(array( 'PhabricatorNotificationServersConfigType' => 'PhabricatorJSONConfigType', 'PhabricatorNotificationStatusView' => 'AphrontTagView', 'PhabricatorNotificationTestController' => 'PhabricatorNotificationController', - 'PhabricatorNotificationTestFeedStory' => 'PhabricatorFeedStory', 'PhabricatorNotificationUIExample' => 'PhabricatorUIExample', 'PhabricatorNotificationsApplication' => 'PhabricatorApplication', 'PhabricatorNotificationsSetting' => 'PhabricatorInternalSetting', diff --git a/src/applications/notification/builder/PhabricatorNotificationBuilder.php b/src/applications/notification/builder/PhabricatorNotificationBuilder.php index 026f55149c..b9a79be3f3 100644 --- a/src/applications/notification/builder/PhabricatorNotificationBuilder.php +++ b/src/applications/notification/builder/PhabricatorNotificationBuilder.php @@ -160,15 +160,6 @@ final class PhabricatorNotificationBuilder extends Phobject { 'href' => $story->getURI(), 'icon' => $story->getImageURI(), ); - } else if ($story instanceof PhabricatorNotificationTestFeedStory) { - $dict[] = array( - 'showAnyNotification' => $web_ready, - 'showDesktopNotification' => $desktop_ready, - 'title' => pht('Test Notification'), - 'body' => $story->renderText(), - 'href' => null, - 'icon' => PhabricatorUser::getDefaultProfileImageURI(), - ); } else { $dict[] = array( 'showWebNotification' => false, diff --git a/src/applications/notification/feed/PhabricatorNotificationTestFeedStory.php b/src/applications/notification/feed/PhabricatorNotificationTestFeedStory.php deleted file mode 100644 index ad984431ba..0000000000 --- a/src/applications/notification/feed/PhabricatorNotificationTestFeedStory.php +++ /dev/null @@ -1,27 +0,0 @@ -getAuthorPHID(); - } - - public function renderView() { - $data = $this->getStoryData(); - - $author_phid = $data->getAuthorPHID(); - - $view = $this->newStoryView(); - - $view->setTitle($data->getValue('title')); - $view->setImage($this->getHandle($author_phid)->getImageURI()); - - return $view; - } - - public function renderText() { - $data = $this->getStoryData(); - return $data->getValue('title'); - } - -}