Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13999207
D11124.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D11124.diff
View Options
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',
@@ -3153,7 +3152,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
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 25, 1:25 PM (3 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6739301
Default Alt Text
D11124.diff (2 KB)
Attached To
Mode
D11124: Remove unused class
Attached
Detach File
Event Timeline
Log In to Comment