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 @@ -2837,7 +2837,6 @@ '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 @@ '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 --- 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); - } - -}