mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 05:50:55 +01:00
Delete some commit dead parsing code
Summary: Ref T13552. Neither "$hashes" or "$user" are used, and constructing them has no side effects. Test Plan: Searched for these symbols. Maniphest Tasks: T13552 Differential Revision: https://secure.phabricator.com/D21441
This commit is contained in:
parent
3dfa89dd5d
commit
367cd28927
1 changed files with 0 additions and 8 deletions
|
@ -63,7 +63,6 @@ abstract class PhabricatorRepositoryCommitMessageParserWorker
|
|||
$commit = $this->commit;
|
||||
$author = $ref->getAuthor();
|
||||
$committer = $ref->getCommitter();
|
||||
$hashes = $ref->getHashes();
|
||||
$has_committer = (bool)strlen($committer);
|
||||
|
||||
$viewer = PhabricatorUser::getOmnipotentUser();
|
||||
|
@ -137,13 +136,6 @@ abstract class PhabricatorRepositoryCommitMessageParserWorker
|
|||
$author_phid = $data->getCommitDetail('authorPHID');
|
||||
$committer_phid = $data->getCommitDetail('committerPHID');
|
||||
|
||||
$user = new PhabricatorUser();
|
||||
if ($author_phid) {
|
||||
$user = $user->loadOneWhere(
|
||||
'phid = %s',
|
||||
$author_phid);
|
||||
}
|
||||
|
||||
if ($author_phid != $commit->getAuthorPHID()) {
|
||||
$commit->setAuthorPHID($author_phid);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue