Perform mass cleanup

This is cleanup based on both new .NET functionality (in 6 and 7) as well as a ton of simplifications and things that were missed that were caught due to the cleanup.
This commit is contained in:
Matt Nadareski
2023-04-19 16:39:58 -04:00
parent fd5fd79b95
commit 728b5d6b27
95 changed files with 1353 additions and 1572 deletions

View File

@@ -65,7 +65,7 @@ namespace SabreTools.Filtering
if (fields == null || fields.Count == 0)
return;
InternalStopwatch watch = new InternalStopwatch("Populating removals from list");
InternalStopwatch watch = new("Populating removals from list");
foreach (string field in fields)
{
@@ -102,7 +102,7 @@ namespace SabreTools.Filtering
if (DatHeaderRemover == null && DatItemRemover == null)
return;
InternalStopwatch watch = new InternalStopwatch("Applying removals to DAT");
InternalStopwatch watch = new("Applying removals to DAT");
// Remove DatHeader fields
if (DatHeaderRemover != null && DatHeaderRemover.DatHeaderFields.Any())