From: Aaron Schulz Date: Sun, 18 Mar 2018 04:24:26 +0000 (-0700) Subject: Remove unused HashRing::newWithoutLocation() method X-Git-Tag: 1.31.0-rc.0~353^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22auteur_infos%22%2C%22id_auteur=%24connect_id_auteur%22%29%20.%20%22?a=commitdiff_plain;h=0bc629fefc76e78a7bcc78ec905e740a9c25e3b4;p=lhc%2Fweb%2Fwiklou.git Remove unused HashRing::newWithoutLocation() method Change-Id: I6f149b2ef2e7e9fe2e7ddbda6c0c7d795c24720e --- diff --git a/includes/libs/HashRing.php b/includes/libs/HashRing.php index 66121303bc..3b9c24d978 100644 --- a/includes/libs/HashRing.php +++ b/includes/libs/HashRing.php @@ -136,19 +136,6 @@ class HashRing { return $this->sourceMap; } - /** - * Get a new hash ring with a location removed from the ring - * - * @param string $location - * @return HashRing|bool Returns false if no non-zero weighted spots are left - */ - public function newWithoutLocation( $location ) { - $map = $this->sourceMap; - unset( $map[$location] ); - - return count( $map ) ? new self( $map ) : false; - } - /** * Remove a location from the "live" hash ring *