From: Aaron Schulz Date: Fri, 12 Sep 2014 09:03:32 +0000 (-0700) Subject: Removed deprecated BagOStuff::replace() method X-Git-Tag: 1.31.0-rc.0~14066^2 X-Git-Url: http://git.cyclocoop.org///%22%40url%40//%22?a=commitdiff_plain;h=9d59d4088e3868cb1ab41d33b1bf4101e7d38f8d;p=lhc%2Fweb%2Fwiklou.git Removed deprecated BagOStuff::replace() method Change-Id: Ife2f8e0f10ad7be76b79d5aee435491ea78d4655 --- diff --git a/includes/objectcache/BagOStuff.php b/includes/objectcache/BagOStuff.php index 6f8f9afd2d..1978c3ead3 100644 --- a/includes/objectcache/BagOStuff.php +++ b/includes/objectcache/BagOStuff.php @@ -277,21 +277,6 @@ abstract class BagOStuff { return false; // key already set } - /** - * @param string $key - * @param mixed $value - * @param int $exptime - * @return bool Success - * @deprecated since 1.23 - */ - public function replace( $key, $value, $exptime = 0 ) { - wfDeprecated( __METHOD__, '1.23' ); - if ( $this->get( $key ) !== false ) { - return $this->set( $key, $value, $exptime ); - } - return false; // key not already set - } - /** * Increase stored value of $key by $value while preserving its TTL * @param string $key Key to increase