Skip to content

Commit f002f79

Browse files
committed
Remove find_pattern(signature_view, process::module) overload
1 parent 3a255b1 commit f002f79

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

include/libhat/Scanner.hpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -308,19 +308,6 @@ namespace hat {
308308
}
309309
}
310310

311-
/// Perform a signature scan on the entirety of the process module or a specified module
312-
template<scan_alignment alignment = scan_alignment::X1>
313-
[[deprecated]] scan_result find_pattern(
314-
signature_view signature,
315-
process::module mod = process::get_process_module()
316-
) {
317-
const auto data = mod.get_module_data();
318-
if (data.empty()) {
319-
return nullptr;
320-
}
321-
return find_pattern<alignment>(data.begin(), data.end(), signature);
322-
}
323-
324311
/// Perform a signature scan on a specific section of the process module or a specified module
325312
template<scan_alignment alignment = scan_alignment::X1>
326313
scan_result find_pattern(
@@ -330,9 +317,6 @@ namespace hat {
330317
scan_hint hints = scan_hint::none
331318
) {
332319
const auto data = mod.get_section_data(section);
333-
if (data.empty()) {
334-
return nullptr;
335-
}
336320
return find_pattern<alignment>(data.begin(), data.end(), signature, hints);
337321
}
338322

0 commit comments

Comments
 (0)