mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Remove now-unnecessary method overrides
This commit is contained in:
@@ -193,36 +193,6 @@ namespace SabreTools.DatItems.Formats
|
|||||||
|
|
||||||
#region Comparision Methods
|
#region Comparision Methods
|
||||||
|
|
||||||
/// <inheritdoc/>
|
|
||||||
public override bool Equals(ModelBackedItem? other)
|
|
||||||
{
|
|
||||||
// If other is null
|
|
||||||
if (other == null)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
// If the type is mismatched
|
|
||||||
if (other is not DatItem otherItem)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
// Compare internal models
|
|
||||||
return Equals(otherItem);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <inheritdoc/>
|
|
||||||
public override bool Equals(ModelBackedItem<Models.Metadata.DatItem>? other)
|
|
||||||
{
|
|
||||||
// If other is null
|
|
||||||
if (other == null)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
// If the type is mismatched
|
|
||||||
if (other is not DatItem otherItem)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
// Compare internal models
|
|
||||||
return Equals(otherItem);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public override bool Equals(DatItem? other)
|
public override bool Equals(DatItem? other)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user