Skip to content

Commit 34af10d

Browse files
committed
py/emitnative: Clean up unused macro and forward function declarations.
1 parent 69e7903 commit 34af10d

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

py/emitnative.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,6 @@
108108

109109
#define REG_GENERATOR_STATE (REG_LOCAL_3)
110110

111-
// number of arguments to viper functions are limited to this value
112-
#define REG_ARG_NUM (4)
113-
114111
#define EMIT_NATIVE_VIPER_TYPE_ERROR(emit, ...) do { \
115112
*emit->error_slot = mp_obj_new_exception_msg_varg(&mp_type_ViperTypeError, __VA_ARGS__); \
116113
} while (0)
@@ -251,11 +248,7 @@ void EXPORT_FUN(free)(emit_t *emit) {
251248
m_del_obj(emit_t, emit);
252249
}
253250

254-
STATIC void emit_pre_pop_reg(emit_t *emit, vtype_kind_t *vtype, int reg_dest);
255-
STATIC void emit_post_push_reg(emit_t *emit, vtype_kind_t vtype, int reg);
256251
STATIC void emit_call_with_imm_arg(emit_t *emit, mp_fun_kind_t fun_kind, mp_int_t arg_val, int arg_reg);
257-
STATIC void emit_native_load_fast(emit_t *emit, qstr qst, mp_uint_t local_num);
258-
STATIC void emit_native_store_fast(emit_t *emit, qstr qst, mp_uint_t local_num);
259252

260253
STATIC void emit_native_mov_state_reg(emit_t *emit, int local_num, int reg_src) {
261254
if (emit->scope->scope_flags & MP_SCOPE_FLAG_GENERATOR) {

0 commit comments

Comments
 (0)