summaryrefslogtreecommitdiffstatshomepage
path: root/py/emitbc.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-27 19:12:05 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-27 19:12:05 +0100
commit968bf34c4c7c457816eb3a9d8358519ba1d3a65f (patch)
treeb186c3207777c6f4553589ad19a3e2dc385aeb52 /py/emitbc.c
parentdb128919187d86962f7ba46ddb072c1dfe53eb7e (diff)
downloadmicropython-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.c6
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,