From d919600ac2216a4b4b37ee2bb1603efbf9d23413 Mon Sep 17 00:00:00 2001 From: Orange Date: Thu, 9 Oct 2025 20:36:10 +0300 Subject: [PATCH] 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. --- source/utility/pe_pattern_scan.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/utility/pe_pattern_scan.cpp b/source/utility/pe_pattern_scan.cpp index a6448f8..920979b 100644 --- a/source/utility/pe_pattern_scan.cpp +++ b/source/utility/pe_pattern_scan.cpp @@ -103,8 +103,8 @@ namespace omath .target_offset = offset}; } std::optional - PePatternScanner::extract_section_from_pe_file([[maybe_unused]] const std::filesystem::path& path_to_file, - [[maybe_unused]] const std::string_view& section_name) + PePatternScanner::extract_section_from_pe_file(const std::filesystem::path& path_to_file, + const std::string_view& section_name) { std::fstream file(path_to_file, std::ios::binary | std::ios::in);