diff options
author | Robin Edwards <robin.ge@gmail.com> | 2013-03-01 13:00:32 +0000 |
---|---|---|
committer | Robin Edwards <robin.ge@gmail.com> | 2013-03-01 13:00:32 +0000 |
commit | 21394d065f13ead860a8fcf9dc7a336f5e063f84 (patch) | |
tree | 3a0149a051eaba69d7837ba1252311dd0019e2da /lib/Net/Riak | |
parent | Cleanup (diff) | |
download | net-riak-21394d065f13ead860a8fcf9dc7a336f5e063f84.tar.gz |
Remove deprecations
Diffstat (limited to 'lib/Net/Riak')
-rw-r--r-- | lib/Net/Riak/Types.pm | 19 |
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; - |