Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
sakno committed Mar 8, 2024
1 parent 149a9d6 commit bdf8181
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -24,13 +24,11 @@ internal ContextEntry(TMember member, int hashCode, Func<TMember, Replicator> fa

internal int HashCode => hashCode;

[DisallowNull]
internal TMember? Key
{
get => Unsafe.As<TMember>(handle.Target);
}

[DisallowNull]
internal Replicator? Value
{
get => Unsafe.As<Replicator>(handle.Dependent);
@@ -43,13 +41,6 @@ internal void Reuse(TMember key, int hashCode, Func<TMember, Replicator> factory
this.hashCode = hashCode;
}

internal void Deconstruct(out TMember? key, out Replicator? context)
{
var pair = handle.TargetAndDependent;
key = Unsafe.As<TMember>(pair.Target);
context = Unsafe.As<Replicator>(pair.Dependent);
}

protected override void Dispose(bool disposing)
{
if (disposing)

0 comments on commit bdf8181

Please sign in to comment.