mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-18 10:41:08 +01:00
Remove unused class
Summary: This class is unused after D6488, maybe we should remove it? Test Plan: `grep` Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11124
This commit is contained in:
parent
9ddc768bb6
commit
556c659875
2 changed files with 0 additions and 43 deletions
|
@ -93,7 +93,6 @@ phutil_register_library_map(array(
|
|||
'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 @@ phutil_register_library_map(array(
|
|||
'Aphront400Response' => 'AphrontResponse',
|
||||
'Aphront403Response' => 'AphrontHTMLResponse',
|
||||
'Aphront404Response' => 'AphrontHTMLResponse',
|
||||
'AphrontAbstractAttachedFileView' => 'AphrontView',
|
||||
'AphrontAjaxResponse' => 'AphrontResponse',
|
||||
'AphrontBarView' => 'AphrontView',
|
||||
'AphrontCSRFException' => 'AphrontException',
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue