summaryrefslogtreecommitdiff
path: root/erts/emulator/beam/beam_ranges.c
diff options
context:
space:
mode:
Diffstat (limited to 'erts/emulator/beam/beam_ranges.c')
-rw-r--r--erts/emulator/beam/beam_ranges.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/erts/emulator/beam/beam_ranges.c b/erts/emulator/beam/beam_ranges.c
index 22ae1ab817..56cc106c54 100644
--- a/erts/emulator/beam/beam_ranges.c
+++ b/erts/emulator/beam/beam_ranges.c
@@ -346,7 +346,6 @@ lookup_loc(FunctionInfo* fi, const void* pc,
if (pc < mid[0]) {
high = mid;
} else if (pc < mid[1]) {
- int file;
int index = mid - lt->func_tab[0];
if (lt->loc_size == 2) {
@@ -359,14 +358,6 @@ lookup_loc(FunctionInfo* fi, const void* pc,
return;
}
fi->needed += 3+2+3+2;
- file = LOC_FILE(fi->loc);
- if (file == 0) {
- /* Special case: Module name with ".erl" appended */
- Atom* mod_atom = atom_tab(atom_val(fi->mfa->module));
- fi->needed += 2*(mod_atom->len+4);
- } else {
- fi->needed += 2*erts_atom_to_string_length((fi->fname_ptr)[file-1]);
- }
return;
} else {
low = mid + 1;