Skip to content

Commit b7d75ce

Browse files
committed
Remove GetHashCode since Fraction's mutable
1 parent 2981cce commit b7d75ce

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Mathos/Arithmetic/Fraction.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -155,16 +155,6 @@ public override bool Equals(object obj)
155155
return obj != null && obj.GetType() == GetType() && this == (Fraction) obj;
156156
}
157157

158-
/// <summary>
159-
/// Returns the hash code for this instance.
160-
/// </summary>
161-
/// <returns>The hashcode of the fraction.</returns>
162-
/// <filterpriority>2</filterpriority>
163-
public override int GetHashCode()
164-
{
165-
return Numerator.GetHashCode() ^ Denominator.GetHashCode();
166-
}
167-
168158
/// <summary>
169159
/// Convert the fraction into a decimal.
170160
/// </summary>

0 commit comments

Comments
 (0)