Skip to content

Remove equals overrides from Remote #1302

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 13, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 0 additions & 33 deletions LibGit2Sharp/Remote.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public class Remote : IBelongToARepository, IDisposable
internal readonly Repository repository;

private readonly RefSpecCollection refSpecs;
private string pushUrl;

readonly RemoteHandle handle;

Expand Down Expand Up @@ -172,38 +171,6 @@ public virtual bool AutomaticallyPruneOnFetch
}
}

/// <summary>
/// Determines whether the specified <see cref="Object"/> is equal to the current <see cref="Remote"/>.
/// </summary>
/// <param name="obj">The <see cref="Object"/> to compare with the current <see cref="Remote"/>.</param>
/// <returns>True if the specified <see cref="Object"/> is equal to the current <see cref="Remote"/>; otherwise, false.</returns>
public override bool Equals(object obj)
{
return Equals(obj as Remote);
}

/// <summary>
/// Tests if two <see cref="Remote"/> are equal.
/// </summary>
/// <param name="left">First <see cref="Remote"/> to compare.</param>
/// <param name="right">Second <see cref="Remote"/> to compare.</param>
/// <returns>True if the two objects are equal; false otherwise.</returns>
public static bool operator ==(Remote left, Remote right)
{
return Equals(left, right);
}

/// <summary>
/// Tests if two <see cref="Remote"/> are different.
/// </summary>
/// <param name="left">First <see cref="Remote"/> to compare.</param>
/// <param name="right">Second <see cref="Remote"/> to compare.</param>
/// <returns>True if the two objects are different; false otherwise.</returns>
public static bool operator !=(Remote left, Remote right)
{
return !Equals(left, right);
}

private string DebuggerDisplay
{
get
Expand Down