Remover code to own class

This was the last of the major bits of code that was technically distinct from Cleaning. This means that each of the bits of functionality that used to all be in Cleaner are split out into their approrpriate classes.
This commit is contained in:
Matt Nadareski
2021-02-01 12:11:32 -08:00
parent 69010dea7f
commit a82b7ccab8
13 changed files with 405 additions and 414 deletions

View File

@@ -10,7 +10,7 @@ namespace SabreTools.Filtering
/// <summary>
/// Represents the removal operations that need to be performed on a set of items, usually a DAT
/// </summary>
public class DatItemRemover : Remover
public class DatItemRemover
{
#region Fields
@@ -26,22 +26,13 @@ namespace SabreTools.Filtering
#endregion
#region Constructors
/// <summary>
/// Constructor
/// </summary>
public DatItemRemover()
{
logger = new Logger(this);
}
#endregion
#region Population
/// <inheritdoc/>
public override bool SetRemover(string field)
/// <summary>
/// Set remover from a value
/// </summary>
/// <param name="field">Key for the remover to be set</param>
public bool SetRemover(string field)
{
// If the key is null or empty, return false
if (string.IsNullOrWhiteSpace(field))