From aeaa1b627d6c76b685c4bb36a6aa04d94cacd519 Mon Sep 17 00:00:00 2001 From: Petrutiu Mihai Date: Mon, 4 Jul 2016 16:04:59 +0300 Subject: [PATCH] Remove IEquatable from Card --- src/ChainOfResponssibility/Poker/Card.cs | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/src/ChainOfResponssibility/Poker/Card.cs b/src/ChainOfResponssibility/Poker/Card.cs index 4f4532e..61ae47f 100644 --- a/src/ChainOfResponssibility/Poker/Card.cs +++ b/src/ChainOfResponssibility/Poker/Card.cs @@ -4,7 +4,7 @@ using ChainOfResponssibility.Poker.Validators; namespace ChainOfResponssibility.Poker { - public class Card : IEquatable + public class Card { public const string ValidValues = "2,3,4,5,6,7,8,9,10,J,Q,K,A"; public const string ValidSuites = "C,H,S,D"; @@ -64,24 +64,6 @@ namespace ChainOfResponssibility.Poker return 0; } - public bool Equals(Card other) - { - if (this.Value == other.Value && this.Suite == other.Suite) - return true; - - return false; - } - - public static bool operator ==(Card c1, Card c2) - { - return c1.Equals(c2); - } - - public static bool operator !=(Card c1, Card c2) - { - return !c1.Equals(c2); - } - public override string ToString() { return Value + Suite;