summaryrefslogtreecommitdiff
path: root/lib/Net
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Net')
-rw-r--r--lib/Net/Riak/Types.pm19
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/Net/Riak/Types.pm b/lib/Net/Riak/Types.pm
index a1e28b4..775b036 100644
--- a/lib/Net/Riak/Types.pm
+++ b/lib/Net/Riak/Types.pm
@@ -16,23 +16,4 @@ coerce RiakHost, from Str, via {
[ { node => $_, weight => 1 } ];
};
-coerce RiakHost, from ArrayRef, via {
- warn "DEPRECATED: Support for multiple hosts will be removed in the 0.17 release.";
- my $backends = $_;
- my $weight = 1 / @$backends;
- [ map { { node => $_, weight => $weight } } @$backends ];
-};
-
-coerce RiakHost, from HashRef, via {
- warn "DEPRECATED: Support for multiple hosts will be removed in the 0.17 release.";
- my $backends = $_;
- my $total = 0;
- $total += $_ for values %$backends;
- [
- map { { node => $_, weight => $backends->{$_} / $total } }
- keys %$backends
- ];
-};
-
1;
-