locator: topology: remove unused functions

This commit is contained in:
Gleb Natapov
2025-01-05 17:18:43 +02:00
parent fb28ff5176
commit db73758655
2 changed files with 0 additions and 17 deletions

View File

@@ -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);

View File

@@ -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<sstring,
std::unordered_set<host_id>>&
get_datacenter_endpoints() const {