dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 2:
a2bb812
)
Merge "Remove @dataProvider and @covers from non-test functions"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Sun, 18 Mar 2018 22:36:44 +0000
(22:36 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Sun, 18 Mar 2018 22:36:44 +0000
(22:36 +0000)
includes/libs/HashRing.php
patch
|
blob
|
history
diff --git
a/includes/libs/HashRing.php
b/includes/libs/HashRing.php
index
6612130
..
3b9c24d
100644
(file)
--- 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
*