Page MenuHomePhabricator

D11124.id26705.diff
No OneTemporary

D11124.id26705.diff

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
@@ -93,7 +93,6 @@
'Aphront400Response' => 'aphront/response/Aphront400Response.php',
'Aphront403Response' => 'aphront/response/Aphront403Response.php',
'Aphront404Response' => 'aphront/response/Aphront404Response.php',
- 'AphrontAbstractAttachedFileView' => 'view/control/AphrontAbstractAttachedFileView.php',
'AphrontAjaxResponse' => 'aphront/response/AphrontAjaxResponse.php',
'AphrontApplicationConfiguration' => 'aphront/configuration/AphrontApplicationConfiguration.php',
'AphrontBarView' => 'view/widget/bars/AphrontBarView.php',
@@ -3152,7 +3151,6 @@
'Aphront400Response' => 'AphrontResponse',
'Aphront403Response' => 'AphrontHTMLResponse',
'Aphront404Response' => 'AphrontHTMLResponse',
- 'AphrontAbstractAttachedFileView' => 'AphrontView',
'AphrontAjaxResponse' => 'AphrontResponse',
'AphrontBarView' => 'AphrontView',
'AphrontCSRFException' => 'AphrontException',
diff --git a/src/view/control/AphrontAbstractAttachedFileView.php b/src/view/control/AphrontAbstractAttachedFileView.php
deleted file mode 100644
--- a/src/view/control/AphrontAbstractAttachedFileView.php
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-
-abstract class AphrontAbstractAttachedFileView extends AphrontView {
-
- private $file;
-
- final public function setFile(PhabricatorFile $file) {
- $this->file = $file;
- return $this;
- }
-
- final protected function getFile() {
- return $this->file;
- }
-
- final protected function getName() {
- $file = $this->getFile();
- return phutil_tag(
- 'a',
- array(
- 'href' => $file->getViewURI(),
- 'target' => '_blank',
- ),
- $file->getName());
- }
-
- final protected function getRemoveElement() {
- $file = $this->getFile();
- return javelin_tag(
- 'a',
- array(
- 'class' => 'button grey',
- 'sigil' => 'aphront-attached-file-view-remove',
- // NOTE: Using 'ref' here instead of 'meta' because the file upload
- // endpoint doesn't receive request metadata and thus can't generate
- // a valid response with node metadata.
- 'ref' => $file->getPHID(),
- ),
- "\xE2\x9C\x96"); // "Heavy Multiplication X"
- }
-}

File Metadata

Mime Type
text/plain
Expires
Mon, Oct 21, 10:32 PM (4 w, 5 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6740113
Default Alt Text
D11124.id26705.diff (2 KB)

Event Timeline