diff --git a/src/cluster/DotNext.Net.Cluster/Net/Cluster/Consensus/Raft/LeaderState.Context.cs b/src/cluster/DotNext.Net.Cluster/Net/Cluster/Consensus/Raft/LeaderState.Context.cs index bdd60d337..33313009c 100644 --- a/src/cluster/DotNext.Net.Cluster/Net/Cluster/Consensus/Raft/LeaderState.Context.cs +++ b/src/cluster/DotNext.Net.Cluster/Net/Cluster/Consensus/Raft/LeaderState.Context.cs @@ -24,13 +24,11 @@ internal ContextEntry(TMember member, int hashCode, Func fa internal int HashCode => hashCode; - [DisallowNull] internal TMember? Key { get => Unsafe.As(handle.Target); } - [DisallowNull] internal Replicator? Value { get => Unsafe.As(handle.Dependent); @@ -43,13 +41,6 @@ internal void Reuse(TMember key, int hashCode, Func factory this.hashCode = hashCode; } - internal void Deconstruct(out TMember? key, out Replicator? context) - { - var pair = handle.TargetAndDependent; - key = Unsafe.As(pair.Target); - context = Unsafe.As(pair.Dependent); - } - protected override void Dispose(bool disposing) { if (disposing)