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

remove unused FeedStory object in getTitleForFeed functions

Summary:
Removes an unused PhabricatorFeedStory Parameter from all getTitleForFeed() and getApplicationTransactionTitleForFeed() functions.
Ref D11088 Ref T6545

Test Plan: ran all unit tests and viewed some dashboard feeds

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T6545

Differential Revision: https://secure.phabricator.com/D11146
This commit is contained in:
Fabian Stelzer 2015-01-02 08:45:43 -08:00 committed by epriestley
parent 7c4de0f6be
commit 00495e3a0e
24 changed files with 42 additions and 51 deletions

View file

@ -258,7 +258,7 @@ final class PhabricatorAuditTransaction
return parent::getTitle(); return parent::getTitle();
} }
public function getTitleForFeed(PhabricatorFeedStory $story) { public function getTitleForFeed() {
$old = $this->getOldValue(); $old = $this->getOldValue();
$new = $this->getNewValue(); $new = $this->getNewValue();
@ -375,7 +375,7 @@ final class PhabricatorAuditTransaction
} }
return parent::getTitleForFeed($story); return parent::getTitleForFeed();
} }
public function getBodyForFeed(PhabricatorFeedStory $story) { public function getBodyForFeed(PhabricatorFeedStory $story) {

View file

@ -55,7 +55,7 @@ final class PhabricatorConfigTransaction
return parent::getTitle(); return parent::getTitle();
} }
public function getTitleForFeed(PhabricatorFeedStory $story = null) { public function getTitleForFeed() {
$author_phid = $this->getAuthorPHID(); $author_phid = $this->getAuthorPHID();
$old = $this->getOldValue(); $old = $this->getOldValue();

View file

@ -52,7 +52,7 @@ final class PhabricatorDashboardPanelTransaction
return parent::getTitle(); return parent::getTitle();
} }
public function getTitleForFeed(PhabricatorFeedStory $story) { public function getTitleForFeed() {
$author_phid = $this->getAuthorPHID(); $author_phid = $this->getAuthorPHID();
$object_phid = $this->getObjectPHID(); $object_phid = $this->getObjectPHID();
@ -92,7 +92,7 @@ final class PhabricatorDashboardPanelTransaction
} }
} }
return parent::getTitleForFeed($story); return parent::getTitleForFeed();
} }
public function getColor() { public function getColor() {

View file

@ -42,7 +42,7 @@ final class PhabricatorDashboardTransaction
return parent::getTitle(); return parent::getTitle();
} }
public function getTitleForFeed(PhabricatorFeedStory $story) { public function getTitleForFeed() {
$author_phid = $this->getAuthorPHID(); $author_phid = $this->getAuthorPHID();
$object_phid = $this->getObjectPHID(); $object_phid = $this->getObjectPHID();
@ -70,7 +70,7 @@ final class PhabricatorDashboardTransaction
} }
} }
return parent::getTitleForFeed($story); return parent::getTitleForFeed();
} }
public function getColor() { public function getColor() {

View file

@ -74,8 +74,7 @@ final class DifferentialBlameRevisionField
} }
public function getApplicationTransactionTitleForFeed( public function getApplicationTransactionTitleForFeed(
PhabricatorApplicationTransaction $xaction, PhabricatorApplicationTransaction $xaction) {
PhabricatorFeedStory $story) {
$object_phid = $xaction->getObjectPHID(); $object_phid = $xaction->getObjectPHID();
$author_phid = $xaction->getAuthorPHID(); $author_phid = $xaction->getAuthorPHID();

View file

@ -99,8 +99,7 @@ final class DifferentialRepositoryField
} }
public function getApplicationTransactionTitleForFeed( public function getApplicationTransactionTitleForFeed(
PhabricatorApplicationTransaction $xaction, PhabricatorApplicationTransaction $xaction) {
PhabricatorFeedStory $story) {
$object_phid = $xaction->getObjectPHID(); $object_phid = $xaction->getObjectPHID();
$author_phid = $xaction->getAuthorPHID(); $author_phid = $xaction->getAuthorPHID();

View file

@ -103,8 +103,7 @@ final class DifferentialRevertPlanField
} }
public function getApplicationTransactionTitleForFeed( public function getApplicationTransactionTitleForFeed(
PhabricatorApplicationTransaction $xaction, PhabricatorApplicationTransaction $xaction) {
PhabricatorFeedStory $story) {
$object_phid = $xaction->getObjectPHID(); $object_phid = $xaction->getObjectPHID();
$author_phid = $xaction->getAuthorPHID(); $author_phid = $xaction->getAuthorPHID();

View file

@ -58,8 +58,7 @@ final class DifferentialSummaryField
} }
public function getApplicationTransactionTitleForFeed( public function getApplicationTransactionTitleForFeed(
PhabricatorApplicationTransaction $xaction, PhabricatorApplicationTransaction $xaction) {
PhabricatorFeedStory $story) {
$object_phid = $xaction->getObjectPHID(); $object_phid = $xaction->getObjectPHID();
$author_phid = $xaction->getAuthorPHID(); $author_phid = $xaction->getAuthorPHID();

View file

@ -72,8 +72,7 @@ final class DifferentialTestPlanField
} }
public function getApplicationTransactionTitleForFeed( public function getApplicationTransactionTitleForFeed(
PhabricatorApplicationTransaction $xaction, PhabricatorApplicationTransaction $xaction) {
PhabricatorFeedStory $story) {
$object_phid = $xaction->getObjectPHID(); $object_phid = $xaction->getObjectPHID();
$author_phid = $xaction->getAuthorPHID(); $author_phid = $xaction->getAuthorPHID();

View file

@ -75,8 +75,7 @@ final class DifferentialTitleField
} }
public function getApplicationTransactionTitleForFeed( public function getApplicationTransactionTitleForFeed(
PhabricatorApplicationTransaction $xaction, PhabricatorApplicationTransaction $xaction) {
PhabricatorFeedStory $story) {
$object_phid = $xaction->getObjectPHID(); $object_phid = $xaction->getObjectPHID();
$author_phid = $xaction->getAuthorPHID(); $author_phid = $xaction->getAuthorPHID();

View file

@ -326,7 +326,7 @@ final class DifferentialTransaction extends PhabricatorApplicationTransaction {
return parent::renderExtraInformationLink(); return parent::renderExtraInformationLink();
} }
public function getTitleForFeed(PhabricatorFeedStory $story) { public function getTitleForFeed() {
$author_phid = $this->getAuthorPHID(); $author_phid = $this->getAuthorPHID();
$object_phid = $this->getObjectPHID(); $object_phid = $this->getObjectPHID();
@ -452,7 +452,7 @@ final class DifferentialTransaction extends PhabricatorApplicationTransaction {
} }
} }
return parent::getTitleForFeed($story); return parent::getTitleForFeed();
} }
public function getIcon() { public function getIcon() {

View file

@ -133,7 +133,7 @@ final class FundInitiativeTransaction
return parent::getTitle(); return parent::getTitle();
} }
public function getTitleForFeed(PhabricatorFeedStory $story) { public function getTitleForFeed() {
$author_phid = $this->getAuthorPHID(); $author_phid = $this->getAuthorPHID();
$object_phid = $this->getObjectPHID(); $object_phid = $this->getObjectPHID();
@ -197,7 +197,7 @@ final class FundInitiativeTransaction
$this->renderHandleLink($object_phid)); $this->renderHandleLink($object_phid));
} }
return parent::getTitleForFeed($story); return parent::getTitleForFeed();
} }
public function getMailTags() { public function getMailTags() {

View file

@ -124,7 +124,7 @@ final class PhabricatorMacroTransaction
return parent::getTitle(); return parent::getTitle();
} }
public function getTitleForFeed(PhabricatorFeedStory $story) { public function getTitleForFeed() {
$author_phid = $this->getAuthorPHID(); $author_phid = $this->getAuthorPHID();
$object_phid = $this->getObjectPHID(); $object_phid = $this->getObjectPHID();
@ -201,7 +201,7 @@ final class PhabricatorMacroTransaction
} }
return parent::getTitleForFeed($story); return parent::getTitleForFeed();
} }
public function getActionName() { public function getActionName() {

View file

@ -554,7 +554,7 @@ final class ManiphestTransaction
return parent::getTitle(); return parent::getTitle();
} }
public function getTitleForFeed(PhabricatorFeedStory $story) { public function getTitleForFeed() {
$author_phid = $this->getAuthorPHID(); $author_phid = $this->getAuthorPHID();
$object_phid = $this->getObjectPHID(); $object_phid = $this->getObjectPHID();
@ -711,7 +711,7 @@ final class ManiphestTransaction
// code in the parent; // code in the parent;
$clone = clone $this; $clone = clone $this;
$clone->setTransactionType(PhabricatorTransactions::TYPE_EDGE); $clone->setTransactionType(PhabricatorTransactions::TYPE_EDGE);
return $clone->getTitleForFeed($story); return $clone->getTitleForFeed();
case self::TYPE_ATTACH: case self::TYPE_ATTACH:
$old = nonempty($old, array()); $old = nonempty($old, array());
@ -773,7 +773,7 @@ final class ManiphestTransaction
} }
return parent::getTitleForFeed($story); return parent::getTitleForFeed();
} }
public function hasChangeDetails() { public function hasChangeDetails() {

View file

@ -90,7 +90,7 @@ final class PhabricatorPasteTransaction
return parent::getTitle(); return parent::getTitle();
} }
public function getTitleForFeed(PhabricatorFeedStory $story) { public function getTitleForFeed() {
$author_phid = $this->getAuthorPHID(); $author_phid = $this->getAuthorPHID();
$object_phid = $this->getObjectPHID(); $object_phid = $this->getObjectPHID();
@ -126,7 +126,7 @@ final class PhabricatorPasteTransaction
break; break;
} }
return parent::getTitleForFeed($story); return parent::getTitleForFeed();
} }
public function getColor() { public function getColor() {

View file

@ -209,7 +209,7 @@ final class PholioTransaction extends PhabricatorApplicationTransaction {
return parent::getTitle(); return parent::getTitle();
} }
public function getTitleForFeed(PhabricatorFeedStory $story) { public function getTitleForFeed() {
$author_phid = $this->getAuthorPHID(); $author_phid = $this->getAuthorPHID();
$object_phid = $this->getObjectPHID(); $object_phid = $this->getObjectPHID();
@ -278,7 +278,7 @@ final class PholioTransaction extends PhabricatorApplicationTransaction {
break; break;
} }
return parent::getTitleForFeed($story); return parent::getTitleForFeed();
} }
public function getBodyForFeed(PhabricatorFeedStory $story) { public function getBodyForFeed(PhabricatorFeedStory $story) {

View file

@ -214,7 +214,7 @@ final class PhrictionTransaction
return parent::getTitle(); return parent::getTitle();
} }
public function getTitleForFeed(PhabricatorFeedStory $story) { public function getTitleForFeed() {
$author_phid = $this->getAuthorPHID(); $author_phid = $this->getAuthorPHID();
$object_phid = $this->getObjectPHID(); $object_phid = $this->getObjectPHID();
@ -250,7 +250,7 @@ final class PhrictionTransaction
$this->renderHandleLink($object_phid)); $this->renderHandleLink($object_phid));
} }
return parent::getTitleForFeed($story); return parent::getTitleForFeed();
} }
public function hasChangeDetails() { public function hasChangeDetails() {

View file

@ -60,7 +60,7 @@ final class PonderAnswerTransaction
return parent::getTitle(); return parent::getTitle();
} }
public function getTitleForFeed(PhabricatorFeedStory $story) { public function getTitleForFeed() {
$author_phid = $this->getAuthorPHID(); $author_phid = $this->getAuthorPHID();
$object_phid = $this->getObjectPHID(); $object_phid = $this->getObjectPHID();
@ -72,7 +72,7 @@ final class PonderAnswerTransaction
$this->renderHandleLink($object_phid)); $this->renderHandleLink($object_phid));
} }
return parent::getTitleForFeed($story); return parent::getTitleForFeed();
} }
public function getBodyForFeed(PhabricatorFeedStory $story) { public function getBodyForFeed(PhabricatorFeedStory $story) {

View file

@ -202,7 +202,7 @@ final class PonderQuestionTransaction
return parent::shouldHide(); return parent::shouldHide();
} }
public function getTitleForFeed(PhabricatorFeedStory $story) { public function getTitleForFeed() {
$author_phid = $this->getAuthorPHID(); $author_phid = $this->getAuthorPHID();
$object_phid = $this->getObjectPHID(); $object_phid = $this->getObjectPHID();
@ -250,7 +250,7 @@ final class PonderQuestionTransaction
} }
} }
return parent::getTitleForFeed($story); return parent::getTitleForFeed();
} }
public function getBodyForFeed(PhabricatorFeedStory $story) { public function getBodyForFeed(PhabricatorFeedStory $story) {

View file

@ -70,7 +70,7 @@ final class ReleephProductTransaction
return parent::getTitle(); return parent::getTitle();
} }
public function getTitleForFeed(PhabricatorFeedStory $story) { public function getTitleForFeed() {
$author_phid = $this->getAuthorPHID(); $author_phid = $this->getAuthorPHID();
$object_phid = $this->getObjectPHID(); $object_phid = $this->getObjectPHID();
@ -93,7 +93,7 @@ final class ReleephProductTransaction
break; break;
} }
return parent::getTitleForFeed($story); return parent::getTitleForFeed();
} }
public function getNoEffectDescription() { public function getNoEffectDescription() {

View file

@ -75,7 +75,7 @@ class PhabricatorApplicationTransactionFeedStory
$xaction = $this->getPrimaryTransaction(); $xaction = $this->getPrimaryTransaction();
$xaction->setHandles($this->getHandles()); $xaction->setHandles($this->getHandles());
$view->setTitle($xaction->getTitleForFeed($this)); $view->setTitle($xaction->getTitleForFeed());
foreach ($xaction_phids as $xaction_phid) { foreach ($xaction_phids as $xaction_phid) {
$secondary_xaction = $this->getObject($xaction_phid); $secondary_xaction = $this->getObject($xaction_phid);
@ -99,7 +99,7 @@ class PhabricatorApplicationTransactionFeedStory
$new_target = PhabricatorApplicationTransaction::TARGET_TEXT; $new_target = PhabricatorApplicationTransaction::TARGET_TEXT;
$xaction->setRenderingTarget($new_target); $xaction->setRenderingTarget($new_target);
$xaction->setHandles($this->getHandles()); $xaction->setHandles($this->getHandles());
$text = $xaction->getTitleForFeed($this); $text = $xaction->getTitleForFeed();
$xaction->setRenderingTarget($old_target); $xaction->setRenderingTarget($old_target);
return $text; return $text;
} }

View file

@ -728,7 +728,7 @@ abstract class PhabricatorApplicationTransaction
} }
} }
public function getTitleForFeed(PhabricatorFeedStory $story) { public function getTitleForFeed() {
$author_phid = $this->getAuthorPHID(); $author_phid = $this->getAuthorPHID();
$object_phid = $this->getObjectPHID(); $object_phid = $this->getObjectPHID();
@ -802,7 +802,7 @@ abstract class PhabricatorApplicationTransaction
case PhabricatorTransactions::TYPE_CUSTOMFIELD: case PhabricatorTransactions::TYPE_CUSTOMFIELD:
$field = $this->getTransactionCustomField(); $field = $this->getTransactionCustomField();
if ($field) { if ($field) {
return $field->getApplicationTransactionTitleForFeed($this, $story); return $field->getApplicationTransactionTitleForFeed($this);
} else { } else {
return pht( return pht(
'%s edited a custom field on %s.', '%s edited a custom field on %s.',
@ -1102,7 +1102,7 @@ abstract class PhabricatorApplicationTransaction
if ($publisher->getRenderWithImpliedContext()) { if ($publisher->getRenderWithImpliedContext()) {
$text[] = $xaction->getTitle(); $text[] = $xaction->getTitle();
} else { } else {
$text[] = $xaction->getTitleForFeed($story); $text[] = $xaction->getTitleForFeed();
} }
$xaction->setRenderingTarget($old_target); $xaction->setRenderingTarget($old_target);

View file

@ -1003,12 +1003,10 @@ abstract class PhabricatorCustomField {
} }
public function getApplicationTransactionTitleForFeed( public function getApplicationTransactionTitleForFeed(
PhabricatorApplicationTransaction $xaction, PhabricatorApplicationTransaction $xaction) {
PhabricatorFeedStory $story) {
if ($this->proxy) { if ($this->proxy) {
return $this->proxy->getApplicationTransactionTitleForFeed( return $this->proxy->getApplicationTransactionTitleForFeed(
$xaction, $xaction);
$story);
} }
$author_phid = $xaction->getAuthorPHID(); $author_phid = $xaction->getAuthorPHID();

View file

@ -360,8 +360,7 @@ abstract class PhabricatorStandardCustomField
} }
public function getApplicationTransactionTitleForFeed( public function getApplicationTransactionTitleForFeed(
PhabricatorApplicationTransaction $xaction, PhabricatorApplicationTransaction $xaction) {
PhabricatorFeedStory $story) {
$author_phid = $xaction->getAuthorPHID(); $author_phid = $xaction->getAuthorPHID();
$object_phid = $xaction->getObjectPHID(); $object_phid = $xaction->getObjectPHID();