From 92c5745ac88e5143f7516c4fd6ada9fc9421d42c Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sat, 10 Dec 2022 14:11:25 -0800 Subject: [PATCH] Remove obsolete PE helper method --- BurnOutSharp.Wrappers/PortableExecutable.cs | 22 --------------------- 1 file changed, 22 deletions(-) diff --git a/BurnOutSharp.Wrappers/PortableExecutable.cs b/BurnOutSharp.Wrappers/PortableExecutable.cs index 56c7fd0d..748345c2 100644 --- a/BurnOutSharp.Wrappers/PortableExecutable.cs +++ b/BurnOutSharp.Wrappers/PortableExecutable.cs @@ -3035,28 +3035,6 @@ namespace BurnOutSharp.Wrappers return GetSectionData(index); } - /// - /// Get the first section data based on name, if possible - /// - /// Name of the section to check for - /// True to enable exact matching of names, false for starts-with - /// Section data on success, null on error - [Obsolete] - public byte[] GetFirstSectionDataWithOffset(string name, bool exact = false, int offset = 0) - { - // If we have no sections - if (SectionTable == null || !SectionTable.Any()) - return null; - - // If the section doesn't exist - if (!ContainsSection(name, exact)) - return null; - - // Get the first index of the section - int index = Array.IndexOf(SectionNames, name); - return GetSectionData(index); - } - /// /// Get the last section data based on name, if possible ///