mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14:52:41 +01:00
Delete unused code in Diffusion browse file
Test Plan: Browsed a file. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4508
This commit is contained in:
parent
0e36c802c5
commit
00f730d6e9
1 changed files with 0 additions and 54 deletions
|
@ -773,60 +773,6 @@ final class DiffusionBrowseFileController extends DiffusionController {
|
|||
return $rows;
|
||||
}
|
||||
|
||||
private static function renderRevision(DiffusionRequest $drequest,
|
||||
$revision) {
|
||||
|
||||
$callsign = $drequest->getCallsign();
|
||||
|
||||
$name = 'r'.$callsign.$revision;
|
||||
return phutil_render_tag(
|
||||
'a',
|
||||
array(
|
||||
'href' => '/'.$name,
|
||||
),
|
||||
$name
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
private static function renderBrowse(
|
||||
DiffusionRequest $drequest,
|
||||
$path,
|
||||
$name = null,
|
||||
$rev = null,
|
||||
$line = null,
|
||||
$view = null,
|
||||
$title = null) {
|
||||
|
||||
$callsign = $drequest->getCallsign();
|
||||
|
||||
if ($name === null) {
|
||||
$name = $path;
|
||||
}
|
||||
|
||||
$at = null;
|
||||
if ($rev) {
|
||||
$at = ';'.$rev;
|
||||
}
|
||||
|
||||
if ($view) {
|
||||
$view = '?view='.$view;
|
||||
}
|
||||
|
||||
if ($line) {
|
||||
$line = '$'.$line;
|
||||
}
|
||||
|
||||
return phutil_render_tag(
|
||||
'a',
|
||||
array(
|
||||
'href' => "/diffusion/{$callsign}/browse/{$path}{$at}{$line}{$view}",
|
||||
'title' => $title,
|
||||
),
|
||||
$name
|
||||
);
|
||||
}
|
||||
|
||||
private function loadFileForData($path, $data) {
|
||||
return PhabricatorFile::buildFromFileDataOrHash(
|
||||
$data,
|
||||
|
|
Loading…
Reference in a new issue