Removes unused path parameter from function.

Simplifies `extract_section_from_pe_file` by removing the unused path parameter.
This clarifies the function's purpose and improves readability.
This commit is contained in:
2025-10-09 20:36:10 +03:00
parent 11681ac601
commit d919600ac2

View File

@@ -103,8 +103,8 @@ namespace omath
.target_offset = offset}; .target_offset = offset};
} }
std::optional<PePatternScanner::Section> std::optional<PePatternScanner::Section>
PePatternScanner::extract_section_from_pe_file([[maybe_unused]] const std::filesystem::path& path_to_file, PePatternScanner::extract_section_from_pe_file(const std::filesystem::path& path_to_file,
[[maybe_unused]] const std::string_view& section_name) const std::string_view& section_name)
{ {
std::fstream file(path_to_file, std::ios::binary | std::ios::in); std::fstream file(path_to_file, std::ios::binary | std::ios::in);