Skip to content

Commit

Permalink
Remove dead code related to allocation list
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Guyot <[email protected]>
  • Loading branch information
pguyot committed Sep 2, 2023
1 parent 7b2678e commit 41bb43d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/libAtomVM/opcodesswitch.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ typedef dreg_t dreg_unsafe_t;

#endif

// This macro does not decode all cases but cases we actually observe in opcodes
// below. More specific decoding is performed when we know the type of the
// argument
#define DECODE_COMPACT_TERM(dest_term, decode_pc) \
{ \
uint8_t first_byte = *(decode_pc)++; \
Expand Down Expand Up @@ -173,11 +176,6 @@ typedef dreg_t dreg_unsafe_t;
} \
break; \
} \
case COMPACT_EXTENDED_ALLOCATION_LIST: { \
uint8_t len = (*(decode_pc)++) >> 4; \
(decode_pc) += (--len * 2); \
break; \
} \
case COMPACT_EXTENDED_TYPED_REGISTER: { \
uint8_t reg_byte = *(decode_pc)++; \
if (((reg_byte & 0x0F) != COMPACT_XREG) \
Expand Down

0 comments on commit 41bb43d

Please sign in to comment.