aboutsummaryrefslogtreecommitdiff
path: root/py/emitcpy.c
diff options
context:
space:
mode:
authorDamien George2014-04-27 19:12:05 +0100
committerDamien George2014-04-27 19:12:05 +0100
commit968bf34c4c7c457816eb3a9d8358519ba1d3a65f (patch)
treeb186c3207777c6f4553589ad19a3e2dc385aeb52 /py/emitcpy.c
parentdb128919187d86962f7ba46ddb072c1dfe53eb7e (diff)
py: Remove unnecessary LOAD_CONST_ID bytecode.
It's the same as LOAD_CONST_STR.
Diffstat (limited to 'py/emitcpy.c')
-rw-r--r--py/emitcpy.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/py/emitcpy.c b/py/emitcpy.c
index a041c4f1e..369e57765 100644
--- a/py/emitcpy.c
+++ b/py/emitcpy.c
@@ -168,13 +168,6 @@ STATIC void emit_cpy_load_const_dec(emit_t *emit, qstr qstr) {
}
}
-STATIC void emit_cpy_load_const_id(emit_t *emit, qstr qstr) {
- emit_pre(emit, 1, 3);
- if (emit->pass == PASS_3) {
- printf("LOAD_CONST '%s'\n", qstr_str(qstr));
- }
-}
-
STATIC void print_quoted_str(qstr qstr, bool bytes) {
const char *str = qstr_str(qstr);
int len = strlen(str);
@@ -818,7 +811,6 @@ const emit_method_table_t emit_cpython_method_table = {
emit_cpy_load_const_small_int,
emit_cpy_load_const_int,
emit_cpy_load_const_dec,
- emit_cpy_load_const_id,
emit_cpy_load_const_str,
emit_cpy_load_null,
emit_cpy_load_fast,