Remove JobQueueGroup::singleton()/destroySingletons()

Bug: T301016
Change-Id: Ia059bff9a9e0c61dcd803c5a69261827b1fc0fa3
This commit is contained in:
Umherirrender 2022-09-26 18:10:44 +02:00
parent 5c4bd2f859
commit e0dfa35032
2 changed files with 2 additions and 26 deletions

View file

@ -83,6 +83,8 @@ because of Phabricator reports.
* The MWGrants class, deprecated since 1.38, has been removed.
* Global functions wfReadOnly and wfReadOnlyReason, deprecated since 1.38, have
been removed.
* JobQueueGroup::singleton() and ::destroySingletons(), deprecated since 1.37,
have been removed.
* …
=== Deprecations in 1.40 ===

View file

@ -30,12 +30,6 @@ use Wikimedia\UUID\GlobalIdGenerator;
* @since 1.21
*/
class JobQueueGroup {
/**
* @var JobQueueGroup[]
* @deprecated since 1.37
*/
protected static $instances = [];
/** @var MapCacheLRU */
protected $cache;
@ -106,26 +100,6 @@ class JobQueueGroup {
$this->globalIdGenerator = $globalIdGenerator;
}
/**
* @deprecated since 1.37 Use JobQueueGroupFactory::makeJobQueueGroup (hard deprecated since 1.39)
* @param bool|string $domain Wiki domain ID
* @return JobQueueGroup
*/
public static function singleton( $domain = false ) {
wfDeprecated( __METHOD__, '1.37' );
return MediaWikiServices::getInstance()->getJobQueueGroupFactory()->makeJobQueueGroup( $domain );
}
/**
* Destroy the singleton instances
*
* @deprecated since 1.37 (hard deprecated since 1.39)
* @return void
*/
public static function destroySingletons() {
wfDeprecated( __METHOD__, '1.37' );
}
/**
* Get the job queue object for a given queue type
*