Skip to content

Commit 4d088fa

Browse files
Remove unused Replica type (#7613)
Co-authored-by: Amaury Chamayou <amchamay@microsoft.com>
1 parent 6ca20af commit 4d088fa

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

src/consensus/aft/impl/state.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -129,24 +129,6 @@ namespace aft
129129
}
130130
};
131131

132-
class Replica
133-
{
134-
public:
135-
Replica(ccf::NodeId id_, const std::vector<uint8_t>& cert_) :
136-
id(std::move(id_)),
137-
verifier(ccf::crypto::make_unique_verifier(cert_))
138-
{}
139-
140-
[[nodiscard]] ccf::NodeId get_id() const
141-
{
142-
return id;
143-
}
144-
145-
private:
146-
ccf::NodeId id;
147-
ccf::crypto::VerifierUniquePtr verifier;
148-
};
149-
150132
struct State
151133
{
152134
State(ccf::NodeId node_id_, bool pre_vote_enabled_ = true) :

0 commit comments

Comments
 (0)