diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-27 19:12:05 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-27 19:12:05 +0100 |
commit | 968bf34c4c7c457816eb3a9d8358519ba1d3a65f (patch) | |
tree | b186c3207777c6f4553589ad19a3e2dc385aeb52 /py/emitbc.c | |
parent | db128919187d86962f7ba46ddb072c1dfe53eb7e (diff) | |
download | micropython-968bf34c4c7c457816eb3a9d8358519ba1d3a65f.tar.gz micropython-968bf34c4c7c457816eb3a9d8358519ba1d3a65f.zip |
py: Remove unnecessary LOAD_CONST_ID bytecode.
It's the same as LOAD_CONST_STR.
Diffstat (limited to 'py/emitbc.c')
-rw-r--r-- | py/emitbc.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/py/emitbc.c b/py/emitbc.c index 3e3f0751ca..95f7b9047b 100644 --- a/py/emitbc.c +++ b/py/emitbc.c @@ -409,11 +409,6 @@ STATIC void emit_bc_load_const_dec(emit_t *emit, qstr qstr) { emit_write_byte_code_byte_qstr(emit, MP_BC_LOAD_CONST_DEC, qstr); } -STATIC void emit_bc_load_const_id(emit_t *emit, qstr qstr) { - emit_bc_pre(emit, 1); - emit_write_byte_code_byte_qstr(emit, MP_BC_LOAD_CONST_ID, qstr); -} - STATIC void emit_bc_load_const_str(emit_t *emit, qstr qstr, bool bytes) { emit_bc_pre(emit, 1); if (bytes) { @@ -840,7 +835,6 @@ const emit_method_table_t emit_bc_method_table = { emit_bc_load_const_small_int, emit_bc_load_const_int, emit_bc_load_const_dec, - emit_bc_load_const_id, emit_bc_load_const_str, emit_bc_load_null, emit_bc_load_fast, |