diff options
author | Derick Alangi <alangiderick@gmail.com> | 2024-07-05 21:02:26 +0200 |
---|---|---|
committer | D3r1ck01 <alangiderick@gmail.com> | 2024-07-08 02:18:49 +0000 |
commit | 05246f6921800a3037da567c814171a6b6575c6b (patch) | |
tree | 0545219620610771d797d88ade39f920cf5d87a7 /includes/libs/objectcache | |
parent | f4002236ea62c46084f4259ab094634129ae9ec7 (diff) | |
download | mediawikicore-05246f6921800a3037da567c814171a6b6575c6b.tar.gz mediawikicore-05246f6921800a3037da567c814171a6b6575c6b.zip |
objectcache: Deprecate unused methods in BagOStuff.php
These methods: getSegmentationSize() and getSegmentedValueMaxSize()
in both the BagOStuff.php and MediumSpecificBagOStuff classes seem
unused for a while now. Codesearch shows that we have no callers of
both the parent and child class overrides.
Since these are public interfaces, they'll have to go through the
deprecation process.
Introduced in b09b3980f991b (I0667a02612526d8ddfd91d5) and later
in 2021, usage was all removed in 942f708b61d8d7 (I5c4bd74379bc45).
Change-Id: Ie529841e673abc7b68f870539dbb23a34a292c89
Diffstat (limited to 'includes/libs/objectcache')
-rw-r--r-- | includes/libs/objectcache/BagOStuff.php | 4 | ||||
-rw-r--r-- | includes/libs/objectcache/MediumSpecificBagOStuff.php | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/includes/libs/objectcache/BagOStuff.php b/includes/libs/objectcache/BagOStuff.php index 85da21bb3cee..96a79924c872 100644 --- a/includes/libs/objectcache/BagOStuff.php +++ b/includes/libs/objectcache/BagOStuff.php @@ -567,18 +567,22 @@ abstract class BagOStuff implements } /** + * @deprecated since 1.43, not used anywhere. * @return int|float The chunk size, in bytes, of segmented objects (INF for no limit) * @since 1.34 */ public function getSegmentationSize() { + wfDeprecated( __METHOD__, '1.43' ); return INF; } /** + * @deprecated since 1.43, not used anywhere. * @return int|float Maximum total segmented object size in bytes (INF for no limit) * @since 1.34 */ public function getSegmentedValueMaxSize() { + wfDeprecated( __METHOD__, '1.43' ); return INF; } diff --git a/includes/libs/objectcache/MediumSpecificBagOStuff.php b/includes/libs/objectcache/MediumSpecificBagOStuff.php index c169d3e2e1f7..6d4bd0fe2d95 100644 --- a/includes/libs/objectcache/MediumSpecificBagOStuff.php +++ b/includes/libs/objectcache/MediumSpecificBagOStuff.php @@ -988,11 +988,19 @@ abstract class MediumSpecificBagOStuff extends BagOStuff { return $this->attrMap[$flag] ?? self::QOS_UNKNOWN; } + /** + * @deprecated since 1.43, not used anywhere. + */ public function getSegmentationSize() { + wfDeprecated( __METHOD__, '1.43' ); return $this->segmentationSize; } + /** + * @deprecated since 1.43, not used anywhere. + */ public function getSegmentedValueMaxSize() { + wfDeprecated( __METHOD__, '1.43' ); return $this->segmentedValueMaxSize; } |