diff --git a/src/libcoreint/interpreter.c b/src/libcoreint/interpreter.c index 9592adace..ed91ba3a4 100644 --- a/src/libcoreint/interpreter.c +++ b/src/libcoreint/interpreter.c @@ -15,31 +15,6 @@ #include "interpreter.h" -void -gen_bytecode () -{ - /* - while (true) { - LEDToggle (LED3); - LEDToggle (LED6); - LEDToggle (LED7); - LEDToggle (LED4); - LEDToggle (LED10); - LEDToggle (LED8); - LEDToggle (LED9); - LEDToggle (LED5); - - wait(500); - } - */ - // save_op_data (0, getop_loop_inf (1)); - // save_op_data (1, getop_call_1 (0, 12)); - // save_op_data (2, getop_call_1 (0, 13)); - // save_op_data (3, getop_call_1 (0, 14)); - // save_op_data (4, getop_call_1 (0, 15)); - // save_op_data (5, getop_jmp (0)); -} - void init_int (void) { diff --git a/src/libcoreint/interpreter.h b/src/libcoreint/interpreter.h index e942d8bc6..7611f05ab 100644 --- a/src/libcoreint/interpreter.h +++ b/src/libcoreint/interpreter.h @@ -31,7 +31,6 @@ struct __int_data int *root_op_addr; /**< pointer to first opcode saved */ }; -void gen_bytecode (void); void init_int (void); void run_int (void); void run_int_from_pos (struct __int_data *); diff --git a/src/libcoreint/opcodes.c b/src/libcoreint/opcodes.c index 56f485722..8d5c68eee 100644 --- a/src/libcoreint/opcodes.c +++ b/src/libcoreint/opcodes.c @@ -18,12 +18,6 @@ #include "jerry-libc.h" #include "opcodes.h" -void -save_op_data (int pos, OPCODE opdata) -{ - __program[pos] = opdata; -} - void opfunc_loop_init_num (OPCODE opdata __unused, struct __int_data *int_data __unused) { JERRY_UNREACHABLE (); } void opfunc_loop_precond_begin_num (OPCODE opdata __unused, struct __int_data *int_data __unused) { JERRY_UNREACHABLE (); } void opfunc_loop_precond_end_num (OPCODE opdata __unused, struct __int_data *int_data __unused) { JERRY_UNREACHABLE (); } diff --git a/src/libcoreint/opcodes.h b/src/libcoreint/opcodes.h index 86766787d..646b3854f 100644 --- a/src/libcoreint/opcodes.h +++ b/src/libcoreint/opcodes.h @@ -149,7 +149,5 @@ OPCODE } __packed; -void save_op_data (int, OPCODE); - #endif /* OPCODES_H */