From db73758655ecd45dbcbc3f6c4cdc2ae3406af73b Mon Sep 17 00:00:00 2001 From: Gleb Natapov Date: Sun, 5 Jan 2025 17:18:43 +0200 Subject: [PATCH] locator: topology: remove unused functions --- locator/topology.cc | 11 ----------- locator/topology.hh | 6 ------ 2 files changed, 17 deletions(-) diff --git a/locator/topology.cc b/locator/topology.cc index 6c1417ca6e..b4c9b971ca 100644 --- a/locator/topology.cc +++ b/locator/topology.cc @@ -544,17 +544,6 @@ bool topology::has_node(host_id id) const noexcept { return bool(node); } -bool topology::has_node(inet_address ep) const noexcept { - auto node = find_node(ep); - tlogger.trace("topology[{}]: has_node: endpoint={}: node={}", fmt::ptr(this), ep, node_printer(node)); - return bool(node); -} - -bool topology::has_endpoint(inet_address ep) const -{ - return has_node(ep); -} - void topology::sort_by_proximity(locator::host_id address, host_id_vector_replica_set& addresses) const { if (can_sort_by_proximity()) { do_sort_by_proximity(address, addresses); diff --git a/locator/topology.hh b/locator/topology.hh index 8163c0e706..27aaa69926 100644 --- a/locator/topology.hh +++ b/locator/topology.hh @@ -251,7 +251,6 @@ public: // Returns true if a node with given host_id is found bool has_node(host_id id) const noexcept; - bool has_node(inet_address id) const noexcept; /** * Stores current DC/rack assignment for ep @@ -265,11 +264,6 @@ public: bool remove_endpoint(locator::host_id ep); - /** - * Returns true iff contains given endpoint. - */ - bool has_endpoint(inet_address) const; - const std::unordered_map>& get_datacenter_endpoints() const {