Skip to content

Commit

Permalink
Remove unused private functions
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide committed Aug 14, 2023
1 parent 7294148 commit 4855475
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions lib/xandra/cluster/load_balancing_policy.ex
Original file line number Diff line number Diff line change
Expand Up @@ -73,22 +73,4 @@ defmodule Xandra.Cluster.LoadBalancingPolicy do
else
@callback hosts_plan(state()) :: {Enumerable.t(), state()}
end

## Private helpers

@doc false
def hosts_plan({mod, state}) do
{hosts, state} = mod.hosts_plan(state)
{hosts, {mod, state}}
end

@doc false
def update_host({mod, state}, host, event) do
case event do
:up -> {mod, mod.host_up(state, host)}
:down -> {mod, mod.host_down(state, host)}
:added -> {mod, mod.host_added(state, host)}
:removed -> {mod, mod.host_removed(state, host)}
end
end
end

0 comments on commit 4855475

Please sign in to comment.