Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cluster: remove unused code #20829

Merged
merged 1 commit into from
Jul 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions src/v/cluster/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
#include <seastar/core/sstring.hh>
#include <seastar/util/variant_utils.hh>

#include <absl/container/btree_set.h>
#include <absl/container/flat_hash_map.h>
#include <absl/container/node_hash_map.h>
#include <absl/hash/hash.h>
Expand Down Expand Up @@ -2448,27 +2447,6 @@ struct leader_term {
friend std::ostream& operator<<(std::ostream&, const leader_term&);
};

struct partition_assignment_cmp {
using is_transparent = void;
constexpr bool operator()(
const partition_assignment& lhs, const partition_assignment& rhs) const {
return lhs.id < rhs.id;
}

constexpr bool operator()(
const model::partition_id& id, const partition_assignment& rhs) const {
return id < rhs.id;
}
constexpr bool operator()(
const partition_assignment& lhs, const model::partition_id& id) const {
return lhs.id < id;
}
constexpr bool operator()(
const model::partition_id& lhs, const model::partition_id& rhs) const {
return lhs < rhs;
}
};

using assignments_set
= contiguous_range_map<model::partition_id::type, partition_assignment>;

Expand Down
Loading