Remove unused HashRing::newWithoutLocation() method
authorAaron Schulz <aschulz@wikimedia.org>
Sun, 18 Mar 2018 04:24:26 +0000 (21:24 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Sun, 18 Mar 2018 06:49:21 +0000 (23:49 -0700)
Change-Id: I6f149b2ef2e7e9fe2e7ddbda6c0c7d795c24720e

includes/libs/HashRing.php

index 6612130..3b9c24d 100644 (file)
@@ -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
         *