summaryrefslogtreecommitdiffhomepage
path: root/program.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-08-05 10:20:50 +0200
committerJo-Philipp Wich <jo@mein.io>2022-08-05 16:37:42 +0200
commit5d5dadc65b7ab88360b1cbcfdca8f108018fed03 (patch)
treea5b03e17d8f50c43692b82e060317e23894e8137 /program.c
parent304995b88d4e068db43a5edb677c2d525f7b49d3 (diff)
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 <jo@mein.io>
Diffstat (limited to 'program.c')
-rw-r--r--program.c21
1 files changed, 0 insertions, 21 deletions
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;
-}