From d1eb80cd57a2d62b673b80411e6d2b319a8a0f5e Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Mon, 30 Nov 2020 20:07:35 +0100 Subject: [PATCH] :art: Clean event.c --- src/lib/event.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/lib/event.c b/src/lib/event.c index 2c3818f4..d025f716 100644 --- a/src/lib/event.c +++ b/src/lib/event.c @@ -17,10 +17,6 @@ static DTOR(event_dtor) { free_vector(shred->info->mp, EV_SHREDS(o)); } -static OP_CHECK(opck_eventwait) { - return env->gwion->type[et_int]; -} - static INSTR(EventWait) { POP_REG(shred, SZ_FLOAT); const M_Object event = *(M_Object*)REG(-SZ_INT); @@ -65,6 +61,6 @@ GWION_IMPORT(event) { GWI_BB(gwi_func_end(gwi, event_broadcast, ae_flag_none)) GWI_BB(gwi_class_end(gwi)) GWI_BB(gwi_oper_ini(gwi, "nonnull Event", "@now", "int")) - _CHECK_OP("=>", eventwait, EventWait) + GWI_BB(gwi_oper_end(gwi, "=>", EventWait)) return GW_OK; } -- 2.43.0