1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-19 03:50:54 +01:00

Remove shouldShowSubscribersProperty() from SubscribableInterface

Summary:
Every caller returns `true`. This was added a long time ago for Projects, but projects are no longer subscribable.

I don't anticipate needing this in the future.

Test Plan: Grepped for this method.

Reviewers: chad

Reviewed By: chad

Differential Revision: https://secure.phabricator.com/D15409
This commit is contained in:
epriestley 2016-03-05 14:53:44 -08:00
parent 220230e08c
commit abb4c03b47
25 changed files with 0 additions and 107 deletions

View file

@ -181,10 +181,6 @@ final class PhabricatorBadgesBadge extends PhabricatorBadgesDAO
return ($this->creatorPHID == $phid);
}
public function shouldShowSubscribersProperty() {
return true;
}
/* -( PhabricatorTokenReceiverInterface )---------------------------------- */

View file

@ -531,10 +531,6 @@ final class PhabricatorCalendarEvent extends PhabricatorCalendarDAO
return ($phid == $this->getUserPHID());
}
public function shouldShowSubscribersProperty() {
return true;
}
/* -( PhabricatorTokenReceiverInterface )---------------------------------- */

View file

@ -70,9 +70,6 @@ final class PhabricatorCountdown extends PhabricatorCountdownDAO
return ($phid == $this->getAuthorPHID());
}
public function shouldShowSubscribersProperty() {
return true;
}
/* -( PhabricatorApplicationTransactionInterface )------------------------- */

View file

@ -485,10 +485,6 @@ final class DifferentialRevision extends DifferentialDAO
return false;
}
public function shouldShowSubscribersProperty() {
return true;
}
/* -( PhabricatorCustomFieldInterface )------------------------------------ */

View file

@ -1348,10 +1348,6 @@ final class PhabricatorFile extends PhabricatorFileDAO
return ($this->authorPHID == $phid);
}
public function shouldShowSubscribersProperty() {
return true;
}
/* -( PhabricatorTokenReceiverInterface )---------------------------------- */

View file

@ -178,10 +178,6 @@ final class FundInitiative extends FundDAO
return ($phid == $this->getOwnerPHID());
}
public function shouldShowSubscribersProperty() {
return true;
}
/* -( PhabricatorTokenRecevierInterface )---------------------------------- */

View file

@ -127,10 +127,6 @@ final class HarbormasterBuildPlan extends HarbormasterDAO
return false;
}
public function shouldShowSubscribersProperty() {
return true;
}
/* -( PhabricatorApplicationTransactionInterface )------------------------- */

View file

@ -328,10 +328,6 @@ final class HeraldRule extends HeraldDAO
return $this->isPersonalRule() && $phid == $this->getAuthorPHID();
}
public function shouldShowSubscribersProperty() {
return true;
}
/* -( PhabricatorDestructibleInterface )----------------------------------- */

View file

@ -163,10 +163,6 @@ final class LegalpadDocument extends LegalpadDAO
return ($this->creatorPHID == $phid);
}
public function shouldShowSubscribersProperty() {
return true;
}
/* -( PhabricatorPolicyInterface )----------------------------------------- */

View file

@ -111,10 +111,6 @@ final class PhabricatorFileImageMacro extends PhabricatorFileDAO
return false;
}
public function shouldShowSubscribersProperty() {
return true;
}
/* -( PhabricatorTokenRecevierInterface )---------------------------------- */

View file

@ -269,10 +269,6 @@ final class ManiphestTask extends ManiphestDAO
return ($phid == $this->getOwnerPHID());
}
public function shouldShowSubscribersProperty() {
return true;
}
/* -( Markup Interface )--------------------------------------------------- */

View file

@ -157,10 +157,6 @@ final class PassphraseCredential extends PassphraseDAO
return false;
}
public function shouldShowSubscribersProperty() {
return true;
}
/* -( PhabricatorDestructibleInterface )----------------------------------- */

View file

@ -155,10 +155,6 @@ final class PhabricatorPaste extends PhabricatorPasteDAO
return ($this->authorPHID == $phid);
}
public function shouldShowSubscribersProperty() {
return true;
}
/* -( PhabricatorTokenReceiverInterface )---------------------------------- */

View file

@ -336,10 +336,6 @@ final class PhameBlog extends PhameDAO
return ($this->creatorPHID == $phid);
}
public function shouldShowSubscribersProperty() {
return true;
}
/* -( PhabricatorConduitResultInterface )---------------------------------- */

View file

@ -282,10 +282,6 @@ final class PhamePost extends PhameDAO
return ($this->bloggerPHID == $phid);
}
public function shouldShowSubscribersProperty() {
return true;
}
/* -( PhabricatorConduitResultInterface )---------------------------------- */

View file

@ -184,10 +184,6 @@ final class PholioMock extends PholioDAO
return ($this->authorPHID == $phid);
}
public function shouldShowSubscribersProperty() {
return true;
}
/* -( PhabricatorPolicyInterface Implementation )-------------------------- */

View file

@ -194,9 +194,6 @@ final class PhrictionDocument extends PhrictionDAO
return false;
}
public function shouldShowSubscribersProperty() {
return true;
}
/* -( PhabricatorApplicationTransactionInterface )------------------------- */

View file

@ -169,9 +169,6 @@ final class PhabricatorPhurlURL extends PhabricatorPhurlDAO
return ($phid == $this->getAuthorPHID());
}
public function shouldShowSubscribersProperty() {
return true;
}
/* -( PhabricatorTokenReceiverInterface )---------------------------------- */

View file

@ -219,10 +219,6 @@ final class PonderAnswer extends PonderDAO
return ($phid == $this->getAuthorPHID());
}
public function shouldShowSubscribersProperty() {
return true;
}
/* -( PhabricatorDestructibleInterface )----------------------------------- */

View file

@ -248,10 +248,6 @@ final class PonderQuestion extends PonderDAO
return ($phid == $this->getAuthorPHID());
}
public function shouldShowSubscribersProperty() {
return true;
}
/* -( PhabricatorTokenReceiverInterface )---------------------------------- */

View file

@ -443,10 +443,6 @@ final class PhabricatorRepositoryCommit
return ($phid == $this->getAuthorPHID());
}
public function shouldShowSubscribersProperty() {
return true;
}
/* -( PhabricatorApplicationTransactionInterface )------------------------- */

View file

@ -179,10 +179,6 @@ final class PhabricatorSlowvotePoll extends PhabricatorSlowvoteDAO
return ($phid == $this->getAuthorPHID());
}
public function shouldShowSubscribersProperty() {
return true;
}
/* -( PhabricatorTokenReceiverInterface )---------------------------------- */

View file

@ -96,11 +96,6 @@ final class PhabricatorSubscriptionsUIEventListener
return;
}
if (!$object->shouldShowSubscribersProperty()) {
// This object doesn't render subscribers in its property list.
return;
}
$subscribers = PhabricatorSubscribersQuery::loadSubscribersForPHID(
$object->getPHID());
if ($subscribers) {

View file

@ -13,15 +13,6 @@ interface PhabricatorSubscribableInterface {
*/
public function isAutomaticallySubscribed($phid);
/**
* Return `true` to indicate that "Subscribers:" should be shown when
* rendering property lists for this object, or `false` to omit the property.
*
* @return bool True to show the "Subscribers:" property.
*/
public function shouldShowSubscribersProperty();
}
// TEMPLATE IMPLEMENTATION /////////////////////////////////////////////////////
@ -33,8 +24,4 @@ interface PhabricatorSubscribableInterface {
return false;
}
public function shouldShowSubscribersProperty() {
return true;
}
*/

View file

@ -218,10 +218,6 @@ final class PhabricatorWorkerBulkJob
return false;
}
public function shouldShowSubscribersProperty() {
return true;
}
/* -( PhabricatorApplicationTransactionInterface )------------------------- */