From bee6f4c17790c5b8cff88a0eca0e23a228a57c52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Wed, 13 Apr 2016 12:08:32 +0200 Subject: [PATCH] Remove equals overrides from Remote We previously removed the implementation for IEquatable, but accidentally left the operator overloads. Get rid of them. While in the area, remove an unused variable. --- LibGit2Sharp/Remote.cs | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/LibGit2Sharp/Remote.cs b/LibGit2Sharp/Remote.cs index 08347379f..b41fe0634 100644 --- a/LibGit2Sharp/Remote.cs +++ b/LibGit2Sharp/Remote.cs @@ -17,7 +17,6 @@ public class Remote : IBelongToARepository, IDisposable internal readonly Repository repository; private readonly RefSpecCollection refSpecs; - private string pushUrl; readonly RemoteHandle handle; @@ -172,38 +171,6 @@ public virtual bool AutomaticallyPruneOnFetch } } - /// - /// Determines whether the specified is equal to the current . - /// - /// The to compare with the current . - /// True if the specified is equal to the current ; otherwise, false. - public override bool Equals(object obj) - { - return Equals(obj as Remote); - } - - /// - /// Tests if two are equal. - /// - /// First to compare. - /// Second to compare. - /// True if the two objects are equal; false otherwise. - public static bool operator ==(Remote left, Remote right) - { - return Equals(left, right); - } - - /// - /// Tests if two are different. - /// - /// First to compare. - /// Second to compare. - /// True if the two objects are different; false otherwise. - public static bool operator !=(Remote left, Remote right) - { - return !Equals(left, right); - } - private string DebuggerDisplay { get