@@ -12,11 +12,8 @@ namespace LibGit2Sharp
12
12
/// A remote repository whose branches are tracked.
13
13
/// </summary>
14
14
[ DebuggerDisplay ( "{DebuggerDisplay,nq}" ) ]
15
- public class Remote : IEquatable < Remote > , IBelongToARepository , IDisposable
15
+ public class Remote : IBelongToARepository , IDisposable
16
16
{
17
- private static readonly LambdaEqualityHelper < Remote > equalityHelper =
18
- new LambdaEqualityHelper < Remote > ( x => x . Name , x => x . Url , x => x . PushUrl ) ;
19
-
20
17
internal readonly Repository repository ;
21
18
22
19
private readonly RefSpecCollection refSpecs ;
@@ -182,25 +179,6 @@ public override bool Equals(object obj)
182
179
return Equals ( obj as Remote ) ;
183
180
}
184
181
185
- /// <summary>
186
- /// Determines whether the specified <see cref="Remote"/> is equal to the current <see cref="Remote"/>.
187
- /// </summary>
188
- /// <param name="other">The <see cref="Remote"/> to compare with the current <see cref="Remote"/>.</param>
189
- /// <returns>True if the specified <see cref="Remote"/> is equal to the current <see cref="Remote"/>; otherwise, false.</returns>
190
- public bool Equals ( Remote other )
191
- {
192
- return equalityHelper . Equals ( this , other ) ;
193
- }
194
-
195
- /// <summary>
196
- /// Returns the hash code for this instance.
197
- /// </summary>
198
- /// <returns>A 32-bit signed integer hash code.</returns>
199
- public override int GetHashCode ( )
200
- {
201
- return equalityHelper . GetHashCode ( this ) ;
202
- }
203
-
204
182
/// <summary>
205
183
/// Tests if two <see cref="Remote"/> are equal.
206
184
/// </summary>
0 commit comments