removed redundant code

This commit is contained in:
hyunghwan.chung 2018-11-22 08:13:30 +00:00
parent 2eb1167190
commit 53ec5b1c33
3 changed files with 2 additions and 6 deletions

View File

@ -539,7 +539,6 @@ static int ignite_3 (moo_t* moo)
moo_oow_t i;
moo_oop_t sym;
moo_oop_class_t cls;
moo_oop_t* moo_ptr;
for (i = 0; i < MOO_COUNTOF(kernel_classes); i++)
{
@ -551,7 +550,6 @@ static int ignite_3 (moo_t* moo)
cls->nsup = moo->sysdic;
if (!moo_putatsysdic(moo, sym, (moo_oop_t)cls)) return -1;
moo_ptr++;
}
/* Attach the system dictionary to the nsdic field of the System class */

View File

@ -43,16 +43,13 @@ moo_pfrc_t moo_pf_utf8_seqlen (moo_t* moo, moo_mod_t* mod, moo_ooi_t nargs)
utf8 = (const moo_bch_t*)MOO_OBJ_GET_BYTE_SLOT(rcv);
size = MOO_OBJ_GET_SIZE(rcv);
#if 0
/* TODO: check the first byte and return bytes required */
/* TODO: do i need to check the first byte and return bytes required regardless of the available length? */
if ((n = moo_utf8_to_uc(utf8, size, &uch)) == 0)
{
/* invalid sequence */
moo_seterrnum (moo, MOO_EECERR);
return MOO_PF_FAILURE;
}
#endif
MOO_STACK_SETRET (moo, nargs, MOO_SMOOI_TO_OOP(n));
return MOO_PF_SUCCESS;

View File

@ -2793,6 +2793,7 @@ static DWORD WINAPI msw_wait_for_timer_event (LPVOID ctx)
msw_tick_done = 0;
/*ExitThread (0);*/
return 0;
}
static MOO_INLINE void start_ticker (void)