From 114568df7a5f1e6aa9d392ecd4644b6d39a2977b Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Sat, 3 Jan 2015 23:49:58 +1100 Subject: [PATCH] Remove unused `ManiphestTaskDescriptionPreviewController` class Summary: This class is no longer used after D6673. Test Plan: `grep` Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11167 --- src/__phutil_library_map__.php | 2 -- ...iphestTaskDescriptionPreviewController.php | 25 ------------------- 2 files changed, 27 deletions(-) delete mode 100644 src/applications/maniphest/controller/ManiphestTaskDescriptionPreviewController.php diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index 4730770067..4492d4eb55 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -1024,7 +1024,6 @@ phutil_register_library_map(array( 'ManiphestTask' => 'applications/maniphest/storage/ManiphestTask.php', 'ManiphestTaskDependedOnByTaskEdgeType' => 'applications/maniphest/edge/ManiphestTaskDependedOnByTaskEdgeType.php', 'ManiphestTaskDependsOnTaskEdgeType' => 'applications/maniphest/edge/ManiphestTaskDependsOnTaskEdgeType.php', - 'ManiphestTaskDescriptionPreviewController' => 'applications/maniphest/controller/ManiphestTaskDescriptionPreviewController.php', 'ManiphestTaskDetailController' => 'applications/maniphest/controller/ManiphestTaskDetailController.php', 'ManiphestTaskEditController' => 'applications/maniphest/controller/ManiphestTaskEditController.php', 'ManiphestTaskHasCommitEdgeType' => 'applications/maniphest/edge/ManiphestTaskHasCommitEdgeType.php', @@ -4165,7 +4164,6 @@ phutil_register_library_map(array( ), 'ManiphestTaskDependedOnByTaskEdgeType' => 'PhabricatorEdgeType', 'ManiphestTaskDependsOnTaskEdgeType' => 'PhabricatorEdgeType', - 'ManiphestTaskDescriptionPreviewController' => 'ManiphestController', 'ManiphestTaskDetailController' => 'ManiphestController', 'ManiphestTaskEditController' => 'ManiphestController', 'ManiphestTaskHasCommitEdgeType' => 'PhabricatorEdgeType', diff --git a/src/applications/maniphest/controller/ManiphestTaskDescriptionPreviewController.php b/src/applications/maniphest/controller/ManiphestTaskDescriptionPreviewController.php deleted file mode 100644 index a1a484727a..0000000000 --- a/src/applications/maniphest/controller/ManiphestTaskDescriptionPreviewController.php +++ /dev/null @@ -1,25 +0,0 @@ -getRequest(); - $description = $request->getStr('description'); - - $task = new ManiphestTask(); - $task->setDescription($description); - - $output = PhabricatorMarkupEngine::renderOneObject( - $task, - ManiphestTask::MARKUP_FIELD_DESCRIPTION, - $request->getUser(), - $task); - - $content = phutil_tag_div('phabricator-remarkup', $output); - - return id(new AphrontAjaxResponse()) - ->setContent($content); - } - -}