Move GetDuplicateSuffix to where it's used

This commit is contained in:
Matt Nadareski
2025-05-02 20:19:56 -04:00
parent f38fe9b007
commit df21af5682
10 changed files with 369 additions and 555 deletions

View File

@@ -212,24 +212,6 @@ namespace SabreTools.DatItems.Formats
_sha256 = other._sha256;
}
/// <summary>
/// Get unique duplicate suffix on name collision
/// </summary>
/// <returns>String representing the suffix</returns>
public override string GetDuplicateSuffix()
{
if (!_crc.IsNullOrEmpty())
return $"_{CRC}";
else if (!_md5.IsNullOrEmpty())
return $"_{MD5}";
else if (!_sha1.IsNullOrEmpty())
return $"_{SHA1}";
else if (!_sha256.IsNullOrEmpty())
return $"_{SHA256}";
else
return "_1";
}
/// <summary>
/// Returns if the File contains any hashes
/// </summary>