mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-30 11:36:54 +00:00
locator: topology: remove unused functions
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user