Bucketing should stay in the item dicts

This commit is contained in:
Matt Nadareski
2025-01-14 09:53:49 -05:00
parent fba7e4da14
commit 89ab926782
2 changed files with 2 additions and 4 deletions

View File

@@ -514,7 +514,6 @@ namespace SabreTools.DatFiles
#endregion #endregion
// TODO: All internal, can this be put into a better location?
#region Bucketing #region Bucketing
/// <summary> /// <summary>
@@ -524,7 +523,7 @@ namespace SabreTools.DatFiles
/// <param name="dedupeType">Dedupe type that should be used</param> /// <param name="dedupeType">Dedupe type that should be used</param>
/// <param name="lower">True if the key should be lowercased (default), false otherwise</param> /// <param name="lower">True if the key should be lowercased (default), false otherwise</param>
/// <param name="norename">True if games should only be compared on game and file name, false if system and source are counted</param> /// <param name="norename">True if games should only be compared on game and file name, false if system and source are counted</param>
internal void BucketBy(ItemKey bucketBy, DedupeType dedupeType, bool lower = true, bool norename = true) public void BucketBy(ItemKey bucketBy, DedupeType dedupeType, bool lower = true, bool norename = true)
{ {
// If we have a situation where there's no dictionary or no keys at all, we skip // If we have a situation where there's no dictionary or no keys at all, we skip
if (_items == null || _items.Count == 0) if (_items == null || _items.Count == 0)

View File

@@ -578,7 +578,6 @@ namespace SabreTools.DatFiles
#endregion #endregion
// TODO: All internal, can this be put into a better location?
#region Bucketing #region Bucketing
/// <summary> /// <summary>
@@ -589,7 +588,7 @@ namespace SabreTools.DatFiles
/// <param name="lower">True if the key should be lowercased (default), false otherwise</param> /// <param name="lower">True if the key should be lowercased (default), false otherwise</param>
/// <param name="norename">True if games should only be compared on game and file name, false if system and source are counted</param> /// <param name="norename">True if games should only be compared on game and file name, false if system and source are counted</param>
/// <returns></returns> /// <returns></returns>
internal void BucketBy(ItemKey bucketBy, DedupeType dedupeType, bool lower = true, bool norename = true) public void BucketBy(ItemKey bucketBy, DedupeType dedupeType, bool lower = true, bool norename = true)
{ {
// If the sorted type isn't the same, we want to sort the dictionary accordingly // If the sorted type isn't the same, we want to sort the dictionary accordingly
if (_bucketedBy != bucketBy && bucketBy != ItemKey.NULL) if (_bucketedBy != bucketBy && bucketBy != ItemKey.NULL)