From 5d5dadc65b7ab88360b1cbcfdca8f108018fed03 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 5 Aug 2022 10:20:50 +0200 Subject: program: remove now unused uc_program_export_lookup() Since we track the offsets in the compiler directly now there's no need to keep this function. Signed-off-by: Jo-Philipp Wich --- program.c | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'program.c') diff --git a/program.c b/program.c index ada4cc2..f347a35 100644 --- a/program.c +++ b/program.c @@ -851,24 +851,3 @@ uc_program_entry(uc_program_t *program) return (uc_function_t *)program->functions.prev; } - -ssize_t -uc_program_export_lookup(uc_program_t *program, uc_source_t *source, uc_value_t *name) -{ - size_t i, off; - ssize_t slot; - - for (i = 0, off = 0; i < program->sources.count; i++) { - if (program->sources.entries[i] != source) { - off += program->sources.entries[i]->exports.count; - continue; - } - - slot = uc_source_export_lookup(source, name); - - if (slot > -1) - return off + slot; - } - - return -1; -} -- cgit v1.2.3