diff --git a/openraft/src/membership/effective_membership.rs b/openraft/src/membership/effective_membership.rs index 0d8d61903..8b223ef50 100644 --- a/openraft/src/membership/effective_membership.rs +++ b/openraft/src/membership/effective_membership.rs @@ -2,7 +2,6 @@ use std::collections::BTreeSet; use std::fmt::Debug; use std::sync::Arc; -use crate::entry::RaftEntry; use crate::log_id::RaftLogId; use crate::node::Node; use crate::quorum::Joint; @@ -70,18 +69,6 @@ where } } -/// Build a EffectiveMembership from a membership config entry -impl From<&Ent> for EffectiveMembership -where - N: Node, - NID: NodeId, - Ent: RaftEntry, -{ - fn from(v: &Ent) -> Self { - EffectiveMembership::new(Some(*v.get_log_id()), v.get_membership().unwrap().clone()) - } -} - impl EffectiveMembership where N: Node,