LoadBalancer::pickRandom() was removed
authorReedy <reedy@wikimedia.org>
Fri, 1 Apr 2016 20:21:59 +0000 (21:21 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Sat, 2 Apr 2016 00:31:50 +0000 (01:31 +0100)
Bug: T122754
Change-Id: I85d0c4387195cb60c70e24a0a7ab338723e6e7f4

RELEASE-NOTES-1.27
includes/db/loadbalancer/LoadBalancer.php

index edde628..12fb06e 100644 (file)
@@ -395,6 +395,7 @@ changes to languages because of Phabricator reports.
 * Skin::getCommonStylePath() was removed (deprecated since 1.24).
 * Skin::newFromKey() was removed (deprecated since 1.24).
 * Skin::getUsableSkins() was removed (deprecated since 1.23).
+* LoadBalancer::pickRandom() was removed (deprecated in 1.21).
 
 == Compatibility ==
 
index 997efa6..741999c 100644 (file)
@@ -161,19 +161,6 @@ class LoadBalancer {
                return wfSetVar( $this->mParentInfo, $x );
        }
 
-       /**
-        * Given an array of non-normalised probabilities, this function will select
-        * an element and return the appropriate key
-        *
-        * @deprecated since 1.21, use ArrayUtils::pickRandom()
-        *
-        * @param array $weights
-        * @return bool|int|string
-        */
-       public function pickRandom( array $weights ) {
-               return ArrayUtils::pickRandom( $weights );
-       }
-
        /**
         * @param array $loads
         * @param bool|string $wiki Wiki to get non-lagged for