From 94f438f6a6e5798cf2613cac709e13244c30cef8 Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Sat, 3 Jan 2015 23:50:18 +1100 Subject: [PATCH] Remove unused `PhrictionDocumentPreviewController` class Summary: This class is no longer required after D6675. Test Plan: `grep` Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11169 --- src/__phutil_library_map__.php | 2 -- .../PhrictionDocumentPreviewController.php | 26 ------------------- 2 files changed, 28 deletions(-) delete mode 100644 src/applications/phriction/controller/PhrictionDocumentPreviewController.php diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index 4492d4eb55..7a706545fe 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -2837,7 +2837,6 @@ phutil_register_library_map(array( 'PhrictionDocumentController' => 'applications/phriction/controller/PhrictionDocumentController.php', 'PhrictionDocumentHeraldAdapter' => 'applications/phriction/herald/PhrictionDocumentHeraldAdapter.php', 'PhrictionDocumentPHIDType' => 'applications/phriction/phid/PhrictionDocumentPHIDType.php', - 'PhrictionDocumentPreviewController' => 'applications/phriction/controller/PhrictionDocumentPreviewController.php', 'PhrictionDocumentQuery' => 'applications/phriction/query/PhrictionDocumentQuery.php', 'PhrictionDocumentStatus' => 'applications/phriction/constants/PhrictionDocumentStatus.php', 'PhrictionEditConduitAPIMethod' => 'applications/phriction/conduit/PhrictionEditConduitAPIMethod.php', @@ -6160,7 +6159,6 @@ phutil_register_library_map(array( 'PhrictionDocumentController' => 'PhrictionController', 'PhrictionDocumentHeraldAdapter' => 'HeraldAdapter', 'PhrictionDocumentPHIDType' => 'PhabricatorPHIDType', - 'PhrictionDocumentPreviewController' => 'PhrictionController', 'PhrictionDocumentQuery' => 'PhabricatorCursorPagedPolicyAwareQuery', 'PhrictionDocumentStatus' => 'PhrictionConstants', 'PhrictionEditConduitAPIMethod' => 'PhrictionConduitAPIMethod', diff --git a/src/applications/phriction/controller/PhrictionDocumentPreviewController.php b/src/applications/phriction/controller/PhrictionDocumentPreviewController.php deleted file mode 100644 index 8e68d798e5..0000000000 --- a/src/applications/phriction/controller/PhrictionDocumentPreviewController.php +++ /dev/null @@ -1,26 +0,0 @@ -getRequest(); - $document = $request->getStr('document'); - - $draft_key = $request->getStr('draftkey'); - if ($draft_key) { - id(new PhabricatorDraft()) - ->setAuthorPHID($request->getUser()->getPHID()) - ->setDraftKey($draft_key) - ->setDraft($document) - ->replaceOrDelete(); - } - - $content_obj = new PhrictionContent(); - $content_obj->setContent($document); - $content = $content_obj->renderContent($request->getUser()); - - return id(new AphrontAjaxResponse())->setContent($content); - } - -}