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:
@@ -1,6 +1,5 @@
|
|||||||
using System.Xml.Serialization;
|
using System.Xml.Serialization;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using SabreTools.Core;
|
|
||||||
using SabreTools.Core.Tools;
|
using SabreTools.Core.Tools;
|
||||||
|
|
||||||
// TODO: Add item mappings for all fields
|
// TODO: Add item mappings for all fields
|
||||||
@@ -150,36 +149,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