Skip to content

Commit 55a3f35

Browse files
Remove unneeded IEquatable<HelpText>
1 parent 7b82ada commit 55a3f35

1 file changed

Lines changed: 1 addition & 17 deletions

File tree

src/CommandLine/Text/HelpText.cs

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace CommandLine.Text
1717
/// Provides means to format an help screen.
1818
/// You can assign it in place of a <see cref="System.String"/> instance.
1919
/// </summary>
20-
public class HelpText: IEquatable<HelpText>
20+
public class HelpText
2121
{
2222
private const int BuilderCapacity = 128;
2323
private const int DefaultMaximumLength = 80; // default console width
@@ -597,22 +597,6 @@ public static IEnumerable<string> RenderUsageTextAsLines<T>(ParserResult<T> pars
597597
}
598598
}
599599

600-
/// <summary>
601-
///
602-
/// </summary>
603-
/// <param name="other"></param>
604-
/// <returns></returns>
605-
public bool Equals(HelpText other)
606-
{
607-
return other != null
608-
&& other.AddDashesToOption == AddDashesToOption
609-
&& other.AddEnumValuesToHelpText == AddEnumValuesToHelpText
610-
&& other.AdditionalNewLineAfterOption == AdditionalNewLineAfterOption
611-
&& other.Copyright.Equals(Copyright)
612-
&& other.Heading.Equals(Heading)
613-
&& other.MaximumDisplayWidth == MaximumDisplayWidth;
614-
}
615-
616600
/// <summary>
617601
/// Returns the help screen as a <see cref="System.String"/>.
618602
/// </summary>

0 commit comments

Comments
 (0)