Remove obsolete PE helper method

This commit is contained in:
Matt Nadareski
2022-12-10 14:11:25 -08:00
parent 792de5cda2
commit 92c5745ac8

View File

@@ -3035,28 +3035,6 @@ namespace BurnOutSharp.Wrappers
return GetSectionData(index);
}
/// <summary>
/// Get the first section data based on name, if possible
/// </summary>
/// <param name="name">Name of the section to check for</param>
/// <param name="exact">True to enable exact matching of names, false for starts-with</param>
/// <returns>Section data on success, null on error</returns>
[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);
}
/// <summary>
/// Get the last section data based on name, if possible
/// </summary>