1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 05:50:55 +01:00

Delete dead code handling README

Summary: Since D2336.

Test Plan: Looked at README in Diffusion.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D4015
This commit is contained in:
vrana 2012-11-21 16:29:09 -08:00
parent 66c648cc56
commit 254678d41d

View file

@ -45,8 +45,6 @@ final class DiffusionBrowseController extends DiffusionController {
} else { } else {
$readme = null;
$phids = array(); $phids = array();
foreach ($results as $result) { foreach ($results as $result) {
$data = $result->getLastCommitData(); $data = $result->getLastCommitData();
@ -55,11 +53,6 @@ final class DiffusionBrowseController extends DiffusionController {
$phids[$data->getCommitDetail('authorPHID')] = true; $phids[$data->getCommitDetail('authorPHID')] = true;
} }
} }
$path = $result->getPath();
if (preg_match('/^readme(|\.txt|\.remarkup)$/i', $path)) {
$readme = $result;
}
} }
$phids = array_keys($phids); $phids = array_keys($phids);