Make stats use the reduced parsing model

This commit is contained in:
Matt Nadareski
2020-12-23 14:06:48 -08:00
parent 616d4fec5e
commit 8a60d824e3
3 changed files with 13 additions and 15 deletions

View File

@@ -669,6 +669,17 @@ namespace SabreTools.DatFiles
return false;
}
/// <summary>
/// Ensure the key exists in the items dictionary
/// </summary>
/// <param name="key">Key to ensure</param>
public void EnsureKey(string key)
{
// If the key is missing from the dictionary, add it
if (!items.ContainsKey(key))
items.TryAdd(key, new List<DatItem>());
}
/// <summary>
/// Get a list of filtered items for a given key
/// </summary>
@@ -768,17 +779,6 @@ namespace SabreTools.DatFiles
bucketedBy = newBucket;
}
/// <summary>
/// Ensure the key exists in the items dictionary
/// </summary>
/// <param name="key">Key to ensure</param>
private void EnsureKey(string key)
{
// If the key is missing from the dictionary, add it
if (!items.ContainsKey(key))
items.TryAdd(key, new List<DatItem>());
}
/// <summary>
/// Remove from the statistics given a DatItem
/// </summary>