Split ApplyRemovals for testability

This commit is contained in:
Matt Nadareski
2025-01-10 21:15:50 -05:00
parent a16a5db197
commit b37787be64
3 changed files with 51 additions and 29 deletions

View File

@@ -130,7 +130,9 @@ namespace SabreTools.DatTools
public void ApplyRemovals(DatFile datFile)
{
InternalStopwatch watch = new("Applying removals to DAT");
datFile.ApplyRemovals(HeaderFieldNames, MachineFieldNames, ItemFieldNames);
datFile.RemoveHeaderFields(HeaderFieldNames);
datFile.RemoveItemFields(MachineFieldNames, ItemFieldNames);
datFile.RemoveItemFieldsDB(MachineFieldNames, ItemFieldNames);
watch.Stop();
}