From 76f64aa91c5a679181038069235894e8f9d78004 Mon Sep 17 00:00:00 2001 From: "Victor M. Alvarez" Date: Tue, 21 Nov 2023 11:11:13 +0100 Subject: [PATCH] chore: remove unused argument from `import_rva_impl` --- yara-x/src/modules/pe/mod.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/yara-x/src/modules/pe/mod.rs b/yara-x/src/modules/pe/mod.rs index 73ac8eb0f..328d05b95 100644 --- a/yara-x/src/modules/pe/mod.rs +++ b/yara-x/src/modules/pe/mod.rs @@ -384,7 +384,6 @@ fn import_rva_func( ) -> Option { let pe = ctx.module_output::()?; import_rva_impl( - ctx, pe.import_details.as_slice(), MatchCriteria::Name(dll_name.as_bstr(ctx)), MatchCriteria::Name(func_name.as_bstr(ctx)), @@ -403,7 +402,6 @@ fn import_rva_ordinal( ) -> Option { let pe = ctx.module_output::()?; import_rva_impl( - ctx, pe.import_details.as_slice(), MatchCriteria::Name(dll_name.as_bstr(ctx)), MatchCriteria::Ordinal(ordinal), @@ -422,7 +420,6 @@ fn delayed_import_rva_func( ) -> Option { let pe = ctx.module_output::()?; import_rva_impl( - ctx, pe.delayed_import_details.as_slice(), MatchCriteria::Name(dll_name.as_bstr(ctx)), MatchCriteria::Name(func_name.as_bstr(ctx)), @@ -441,7 +438,6 @@ fn delayed_import_rva_ordinal( ) -> Option { let pe = ctx.module_output::()?; import_rva_impl( - ctx, pe.delayed_import_details.as_slice(), MatchCriteria::Name(dll_name.as_bstr(ctx)), MatchCriteria::Ordinal(ordinal), @@ -613,7 +609,6 @@ fn imports_impl( } fn import_rva_impl( - ctx: &ScanContext, imports: &[Import], expected_dll_name: MatchCriteria, expected_func_name: MatchCriteria,