Skip to content

Commit 5936495

Browse files
Steven T. CramerSteven T. Cramer
authored andcommitted
Trying to make Codacy happy.
Not sure if I agree with Codacy Default rules that are currently configured
1 parent ff43ffa commit 5936495

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

source/BlazorState/Subscriptions.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,11 @@ public Subscription(Type aStateType, string aComponentId, WeakReference<BlazorSt
2020
public string ComponentId { get; }
2121
public WeakReference<BlazorStateComponent> BlazorStateComponentReference { get; }
2222

23-
public override bool Equals(object aObject) => aObject is Subscription subscription && Equals(subscription);
2423
public bool Equals(Subscription aSubscription) =>
2524
EqualityComparer<Type>.Default.Equals(StateType, aSubscription.StateType) &&
2625
ComponentId == aSubscription.ComponentId &&
2726
EqualityComparer<WeakReference<BlazorStateComponent>>.Default.Equals(BlazorStateComponentReference, aSubscription.BlazorStateComponentReference);
2827

29-
public override int GetHashCode()
30-
{
31-
int hashCode = -1827213943;
32-
hashCode = hashCode * -1521134295 + EqualityComparer<Type>.Default.GetHashCode(StateType);
33-
hashCode = hashCode * -1521134295 + EqualityComparer<string>.Default.GetHashCode(ComponentId);
34-
hashCode = hashCode * -1521134295 + EqualityComparer<WeakReference<BlazorStateComponent>>.Default.GetHashCode(BlazorStateComponentReference);
35-
return hashCode;
36-
}
37-
3828
public static bool operator ==(Subscription aLeftSubscription, Subscription aRightSubscription) => aLeftSubscription.Equals(aRightSubscription);
3929
public static bool operator !=(Subscription aLeftSubscription, Subscription aRightSubscription) => !(aLeftSubscription == aRightSubscription);
4030
}

0 commit comments

Comments
 (0)