Skip to content

Commit

Permalink
chore: remove unused argument from import_rva_impl
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Nov 21, 2023
1 parent 4f1337d commit 76f64aa
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions yara-x/src/modules/pe/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,6 @@ fn import_rva_func(
) -> Option<i64> {
let pe = ctx.module_output::<PE>()?;
import_rva_impl(
ctx,
pe.import_details.as_slice(),
MatchCriteria::Name(dll_name.as_bstr(ctx)),
MatchCriteria::Name(func_name.as_bstr(ctx)),
Expand All @@ -403,7 +402,6 @@ fn import_rva_ordinal(
) -> Option<i64> {
let pe = ctx.module_output::<PE>()?;
import_rva_impl(
ctx,
pe.import_details.as_slice(),
MatchCriteria::Name(dll_name.as_bstr(ctx)),
MatchCriteria::Ordinal(ordinal),
Expand All @@ -422,7 +420,6 @@ fn delayed_import_rva_func(
) -> Option<i64> {
let pe = ctx.module_output::<PE>()?;
import_rva_impl(
ctx,
pe.delayed_import_details.as_slice(),
MatchCriteria::Name(dll_name.as_bstr(ctx)),
MatchCriteria::Name(func_name.as_bstr(ctx)),
Expand All @@ -441,7 +438,6 @@ fn delayed_import_rva_ordinal(
) -> Option<i64> {
let pe = ctx.module_output::<PE>()?;
import_rva_impl(
ctx,
pe.delayed_import_details.as_slice(),
MatchCriteria::Name(dll_name.as_bstr(ctx)),
MatchCriteria::Ordinal(ordinal),
Expand Down Expand Up @@ -613,7 +609,6 @@ fn imports_impl(
}

fn import_rva_impl(
ctx: &ScanContext,
imports: &[Import],
expected_dll_name: MatchCriteria,
expected_func_name: MatchCriteria,
Expand Down

0 comments on commit 76f64aa

Please sign in to comment.