ModelBackedItem doesn't need to be equatable

This commit is contained in:
Matt Nadareski
2026-04-05 01:08:41 -04:00
parent 0ed13167ba
commit 1997346988
49 changed files with 7 additions and 1381 deletions

View File

@@ -61,36 +61,6 @@ namespace SabreTools.Metadata.DatItems.Test
/// <inheritdoc/>
public override void SetName(string? name) => Name = name;
/// <inheritdoc/>
public override bool Equals(ModelBackedItem? other)
{
// If the other item is null
if (other is null)
return false;
// If the type matches
if (other is TestDatItem otherTestDatItem)
return ((TestDatItemModel)_internal).Equals((TestDatItemModel)otherTestDatItem._internal);
// Everything else fails
return false;
}
/// <inheritdoc/>
public override bool Equals(ModelBackedItem<Data.Models.Metadata.DatItem>? other)
{
// If the other item is null
if (other is null)
return false;
// If the type matches
if (other is TestDatItem otherTestDatItem)
return ((TestDatItemModel)_internal).Equals((TestDatItemModel)otherTestDatItem._internal);
// Everything else fails
return false;
}
/// <inheritdoc/>
public override bool Equals(DatItem? other)
{