@@ -88,39 +88,6 @@ static bool IsBetween(byte value, byte low, byte high)
88
88
return value >= low && value <= high ;
89
89
}
90
90
91
- /// <summary>
92
- /// Indicates whether this instance and a specified object are equal.
93
- /// </summary>
94
- /// <param name="other">Another object to compare to. </param>
95
- /// <returns>true if <paramref name="other"/> and this instance are the same type and represent the same value; otherwise, false. </returns>
96
- public bool Equals ( Token other )
97
- {
98
- // TODO: need a faster comparisson implementation
99
- return Kind == other . Kind && Text . ToString ( ) . Equals ( other . Text . ToString ( ) , StringComparison . OrdinalIgnoreCase ) ;
100
- }
101
-
102
- /// <summary>
103
- /// Returns a value indicating the equality of the two objects.
104
- /// </summary>
105
- /// <param name="left">The left hand side of the comparisson.</param>
106
- /// <param name="right">The right hand side of the comparisson.</param>
107
- /// <returns>true if the left and right side are equal, false if not.</returns>
108
- public static bool operator == ( Token left , Token right )
109
- {
110
- return left . Equals ( right ) ;
111
- }
112
-
113
- /// <summary>
114
- /// Returns a value indicating the inequality of the two objects.
115
- /// </summary>
116
- /// <param name="left">The left hand side of the comparisson.</param>
117
- /// <param name="right">The right hand side of the comparisson.</param>
118
- /// <returns>false if the left and right side are equal, true if not.</returns>
119
- public static bool operator != ( Token left , Token right )
120
- {
121
- return ! left . Equals ( right ) ;
122
- }
123
-
124
91
/// <summary>
125
92
/// Returns the string representation of the token.
126
93
/// </summary>
0 commit comments