From 4855475c4c9bef42e37e70fc02e9c7b75eba4802 Mon Sep 17 00:00:00 2001 From: Andrea Leopardi Date: Mon, 14 Aug 2023 15:29:32 +0200 Subject: [PATCH] Remove unused private functions --- lib/xandra/cluster/load_balancing_policy.ex | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/lib/xandra/cluster/load_balancing_policy.ex b/lib/xandra/cluster/load_balancing_policy.ex index dc0ce69a..81d7830b 100644 --- a/lib/xandra/cluster/load_balancing_policy.ex +++ b/lib/xandra/cluster/load_balancing_policy.ex @@ -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