Ejegg has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/332968 )
Change subject: Delete unused CyclicalArray ...................................................................... Delete unused CyclicalArray Nifty code, but we're no longer using it for orphans. Change-Id: If40e4bcea7a6ecf2d79d33694f521df40ca00ee9 --- M extension.json D globalcollect_gateway/CyclicalArray.php 2 files changed, 0 insertions(+), 38 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DonationInterface refs/changes/68/332968/1 diff --git a/extension.json b/extension.json index f0762b3..12c2c5a 100644 --- a/extension.json +++ b/extension.json @@ -69,7 +69,6 @@ "ContributionTrackingPlusUnique": "gateway_common/ContributionTrackingPlusUnique.php", "CurrencyRates": "gateway_common/CurrencyRates.php", "CurrencyRatesModule": "modules/CurrencyRatesModule.php", - "CyclicalArray": "globalcollect_gateway/CyclicalArray.php", "DonationData": "gateway_common/DonationData.php", "DonationInterface": "DonationInterface.class.php", "DonationLoggerFactory": "gateway_common/DonationLoggerFactory.php", diff --git a/globalcollect_gateway/CyclicalArray.php b/globalcollect_gateway/CyclicalArray.php deleted file mode 100644 index dcf5da9..0000000 --- a/globalcollect_gateway/CyclicalArray.php +++ /dev/null @@ -1,37 +0,0 @@ -<?php - -/** - * List that can be iterated repeatedly, and changed from within the loop - * - * Used to track queue endpoints. - */ -class CyclicalArray { - protected $queues; - - /** - * Can be initialized with a single object or an array. - */ - public function __construct( $queue_list ) { - $this->queues = (array) $queue_list; - } - - public function current() { - return $this->queues[0]; - } - - public function isEmpty() { - return empty( $this->queues ); - } - - public function rotate() { - if ( count( $this->queues ) < 1 ) { - return; - } - $rotate_elem = array_shift( $this->queues ); - array_push( $this->queues, $rotate_elem ); - } - - public function dropCurrent() { - array_shift( $this->queues ); - } -} -- To view, visit https://gerrit.wikimedia.org/r/332968 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: If40e4bcea7a6ecf2d79d33694f521df40ca00ee9 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/DonationInterface Gerrit-Branch: master Gerrit-Owner: Ejegg <eeggles...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits