diff --git a/BurnOutSharp/FileType/Executable.cs b/BurnOutSharp/FileType/Executable.cs index 398e5c12..00f1aaa8 100644 --- a/BurnOutSharp/FileType/Executable.cs +++ b/BurnOutSharp/FileType/Executable.cs @@ -184,49 +184,13 @@ namespace BurnOutSharp.FileType /// /// Check to see if a protection should be added or not /// - /// Class that was last used to check + /// Class that was last used to check /// Scanner object for state tracking /// The protection result to be checked - private bool ShouldAddProtection(IContentCheck contentCheckClass, Scanner scanner, string protection) + private bool ShouldAddProtection(object checkClass, Scanner scanner, string protection) { // If we have a valid content check based on settings - if (!contentCheckClass.GetType().Namespace.ToLowerInvariant().Contains("packertype") || scanner.ScanPackers) - { - if (!string.IsNullOrWhiteSpace(protection)) - return true; - } - - return false; - } - - /// - /// Check to see if a protection should be added or not - /// - /// Class that was last used to check - /// Scanner object for state tracking - /// The protection result to be checked - private bool ShouldAddProtection(INEContentCheck neContentCheckClass, Scanner scanner, string protection) - { - // If we have a valid content check based on settings - if (!neContentCheckClass.GetType().Namespace.ToLowerInvariant().Contains("packertype") || scanner.ScanPackers) - { - if (!string.IsNullOrWhiteSpace(protection)) - return true; - } - - return false; - } - - /// - /// Check to see if a protection should be added or not - /// - /// Class that was last used to check - /// Scanner object for state tracking - /// The protection result to be checked - private bool ShouldAddProtection(IPEContentCheck peContentCheckClass, Scanner scanner, string protection) - { - // If we have a valid content check based on settings - if (!peContentCheckClass.GetType().Namespace.ToLowerInvariant().Contains("packertype") || scanner.ScanPackers) + if (!checkClass.GetType().Namespace.ToLowerInvariant().Contains("packertype") || scanner.ScanPackers) { if (!string.IsNullOrWhiteSpace(protection)) return true;