From d095276403ecc3209c2d20a83f984e8ff9cf0b8c Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Tue, 30 Dec 2014 23:22:01 +1100 Subject: [PATCH] Remove unused Phortune edge types Summary: These edge types don't seem to be used. Test Plan: `grep` Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11080 --- .../edges/constants/PhabricatorEdgeConfig.php | 19 ----------- .../PhabricatorBaseEnglishTranslation.php | 34 ------------------- 2 files changed, 53 deletions(-) diff --git a/src/infrastructure/edges/constants/PhabricatorEdgeConfig.php b/src/infrastructure/edges/constants/PhabricatorEdgeConfig.php index 5309c2beb3..f476d16967 100644 --- a/src/infrastructure/edges/constants/PhabricatorEdgeConfig.php +++ b/src/infrastructure/edges/constants/PhabricatorEdgeConfig.php @@ -25,9 +25,6 @@ final class PhabricatorEdgeConfig extends PhabricatorEdgeConstants { const TYPE_OBJECT_HAS_FILE = 25; const TYPE_FILE_HAS_OBJECT = 26; - const TYPE_PURCAHSE_HAS_CHARGE = 29; - const TYPE_CHARGE_HAS_PURCHASE = 30; - const TYPE_DREV_HAS_COMMIT = 31; const TYPE_COMMIT_HAS_DREV = 32; @@ -250,10 +247,6 @@ final class PhabricatorEdgeConfig extends PhabricatorEdgeConstants { return '%s edited unsubcriber(s), added %d: %s; removed %d: %s.'; case self::TYPE_OBJECT_HAS_FILE: return '%s edited file(s), added %d: %s; removed %d: %s.'; - case self::TYPE_PURCAHSE_HAS_CHARGE: - return '%s edited charge(s), added %d: %s; removed %d: %s.'; - case self::TYPE_CHARGE_HAS_PURCHASE: - return '%s edited purchase(s), added %d: %s; removed %d: %s.'; case self::TYPE_OBJECT_HAS_CONTRIBUTOR: return '%s edited contributor(s), added %d: %s; removed %d: %s.'; case self::TYPE_DREV_HAS_REVIEWER: @@ -303,10 +296,6 @@ final class PhabricatorEdgeConfig extends PhabricatorEdgeConstants { return '%s added %d unsubcriber(s): %s.'; case self::TYPE_OBJECT_HAS_FILE: return '%s added %d file(s): %s.'; - case self::TYPE_PURCAHSE_HAS_CHARGE: - return '%s added %d charge(s): %s.'; - case self::TYPE_CHARGE_HAS_PURCHASE: - return '%s added %d purchase(s): %s.'; case self::TYPE_OBJECT_HAS_CONTRIBUTOR: return '%s added %d contributor(s): %s.'; case self::TYPE_DREV_HAS_REVIEWER: @@ -359,10 +348,6 @@ final class PhabricatorEdgeConfig extends PhabricatorEdgeConstants { return '%s removed %d unsubcriber(s): %s.'; case self::TYPE_OBJECT_HAS_FILE: return '%s removed %d file(s): %s.'; - case self::TYPE_PURCAHSE_HAS_CHARGE: - return '%s removed %d charge(s): %s.'; - case self::TYPE_CHARGE_HAS_PURCHASE: - return '%s removed %d purchase(s): %s.'; case self::TYPE_OBJECT_HAS_CONTRIBUTOR: return '%s removed %d contributor(s): %s.'; case self::TYPE_DREV_HAS_REVIEWER: @@ -413,10 +398,6 @@ final class PhabricatorEdgeConfig extends PhabricatorEdgeConstants { return '%s updated unsubcribers of %s.'; case self::TYPE_OBJECT_HAS_FILE: return '%s updated files of %s.'; - case self::TYPE_PURCAHSE_HAS_CHARGE: - return '%s updated charges of %s.'; - case self::TYPE_CHARGE_HAS_PURCHASE: - return '%s updated purchases of %s.'; case self::TYPE_OBJECT_HAS_CONTRIBUTOR: return '%s updated contributors of %s.'; case self::TYPE_DREV_HAS_REVIEWER: diff --git a/src/infrastructure/internationalization/translation/PhabricatorBaseEnglishTranslation.php b/src/infrastructure/internationalization/translation/PhabricatorBaseEnglishTranslation.php index 71b1172f6d..85b718ec6b 100644 --- a/src/infrastructure/internationalization/translation/PhabricatorBaseEnglishTranslation.php +++ b/src/infrastructure/internationalization/translation/PhabricatorBaseEnglishTranslation.php @@ -501,40 +501,6 @@ abstract class PhabricatorBaseEnglishTranslation ), ), - '%s edited charge(s), added %d: %s; removed %d: %s.' => - '%s edited charges, added: %3$s; removed: %5$s', - - '%s added %d charge(s): %s.' => array( - array( - '%s added a charge: %3$s.', - '%s added charges: %3$s.', - ), - ), - - '%s removed %d charge(s): %s.' => array( - array( - '%s removed a charge: %3$s.', - '%s removed charges: %3$s.', - ), - ), - - '%s edited purchase(s), added %d: %s; removed %d: %s.' => - '%s edited purchases, added: %3$s; removed: %5$s', - - '%s added %d purchase(s): %s.' => array( - array( - '%s added a purchase: %3$s.', - '%s added purchases: %3$s.', - ), - ), - - '%s removed %d purchase(s): %s.' => array( - array( - '%s removed a purchase: %3$s.', - '%s removed purchases: %3$s.', - ), - ), - '%s edited contributor(s), added %d: %s; removed %d: %s.' => '%s edited contributors, added: %3$s; removed: %5$s',