From 0bc629fefc76e78a7bcc78ec905e740a9c25e3b4 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 17 Mar 2018 21:24:26 -0700 Subject: [PATCH] Remove unused HashRing::newWithoutLocation() method Change-Id: I6f149b2ef2e7e9fe2e7ddbda6c0c7d795c24720e --- includes/libs/HashRing.php | 13 ------------- 1 file changed, 13 deletions(-) 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 * -- 2.20.1