summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Högberg <john@erlang.org>2021-10-05 14:18:26 +0200
committerJohn Högberg <john@erlang.org>2021-10-05 14:26:42 +0200
commit70137847d4a04930cf5aa52c2c87892f245ea514 (patch)
tree03602ef46811e51b16059d80331c9d8fd143eddf
parentc782060a100352f383eadbe312685d984773f44c (diff)
downloaderlang-70137847d4a04930cf5aa52c2c87892f245ea514.tar.gz
erts: Remove unused field from loader
-rw-r--r--erts/emulator/beam/emu/emu_load.c5
-rw-r--r--erts/emulator/beam/emu/load.h5
-rw-r--r--erts/emulator/beam/jit/asm_load.c5
-rw-r--r--erts/emulator/beam/jit/load.h2
4 files changed, 0 insertions, 17 deletions
diff --git a/erts/emulator/beam/emu/emu_load.c b/erts/emulator/beam/emu/emu_load.c
index 6ca9f28f4c..fa0372be87 100644
--- a/erts/emulator/beam/emu/emu_load.c
+++ b/erts/emulator/beam/emu/emu_load.c
@@ -157,11 +157,6 @@ int beam_load_prepared_dtor(Binary* magic)
beamfile_free(&stp->beam);
beamopallocator_dtor(&stp->op_allocator);
- if (stp->bin) {
- driver_free_binary(stp->bin);
- stp->bin = NULL;
- }
-
if (stp->code_hdr) {
BeamCodeHeader *hdr = stp->code_hdr;
diff --git a/erts/emulator/beam/emu/load.h b/erts/emulator/beam/emu/load.h
index 83e8ace504..561327a870 100644
--- a/erts/emulator/beam/emu/load.h
+++ b/erts/emulator/beam/emu/load.h
@@ -94,11 +94,6 @@ typedef struct {
*/
struct LoaderState_ {
/*
- * The current logical file within the binary.
- */
- ErlDrvBinary* bin; /* Binary holding BEAM file (or NULL) */
-
- /*
* The following are used mainly for diagnostics.
*/
diff --git a/erts/emulator/beam/jit/asm_load.c b/erts/emulator/beam/jit/asm_load.c
index 744fb9bcfe..a50236ed7f 100644
--- a/erts/emulator/beam/jit/asm_load.c
+++ b/erts/emulator/beam/jit/asm_load.c
@@ -191,11 +191,6 @@ int beam_load_prepared_dtor(Binary *magic) {
beamfile_free(&stp->beam);
beamopallocator_dtor(&stp->op_allocator);
- if (stp->bin) {
- driver_free_binary(stp->bin);
- stp->bin = NULL;
- }
-
if (stp->load_hdr) {
BeamCodeHeader *hdr = stp->load_hdr;
diff --git a/erts/emulator/beam/jit/load.h b/erts/emulator/beam/jit/load.h
index 12299d5727..dff5852429 100644
--- a/erts/emulator/beam/jit/load.h
+++ b/erts/emulator/beam/jit/load.h
@@ -43,8 +43,6 @@ typedef struct {
/* This structure contains all information about the module being loaded. */
struct LoaderState_ {
- ErlDrvBinary *bin; /* Binary holding BEAM file (or NULL) */
-
/*
* The following are used mainly for diagnostics.
*/