Remove unused callfunc
This commit is contained in:
parent
3202625ca5
commit
da91e6a392
3 changed files with 0 additions and 14 deletions
|
@ -1813,13 +1813,6 @@
|
|||
_dynmultichoice \left, \top, \ignoreBPress, \maxBeforeScroll, \shouldSort, \initialSelected, \callbacks, NULL
|
||||
.endm
|
||||
|
||||
@ Like callnative, but can return a value. TODO: Replace uses with callnative.
|
||||
.macro callfunc func:req
|
||||
.byte 0xe5
|
||||
.4byte \func
|
||||
.endm
|
||||
|
||||
|
||||
@ Supplementary
|
||||
|
||||
.macro goto_if_unset flag:req, dest:req
|
||||
|
|
|
@ -229,7 +229,6 @@ gScriptCmdTable::
|
|||
.4byte ScrCmd_bufferitemnameplural @ 0xe2
|
||||
.4byte ScrCmd_dynmultichoice @ 0xe3
|
||||
.4byte ScrCmd_dynmultipush @ 0xe4
|
||||
.4byte ScrCmd_callfunc @ 0xe5
|
||||
|
||||
gScriptCmdTableEnd::
|
||||
.4byte ScrCmd_nop
|
||||
|
|
|
@ -145,12 +145,6 @@ bool8 ScrCmd_callnative(struct ScriptContext *ctx)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
bool8 ScrCmd_callfunc(struct ScriptContext *ctx)
|
||||
{
|
||||
u32 func = ScriptReadWord(ctx);
|
||||
return ((ScrCmdFunc) func)(ctx);
|
||||
}
|
||||
|
||||
bool8 ScrCmd_waitstate(struct ScriptContext *ctx)
|
||||
{
|
||||
ScriptContext_Stop();
|
||||
|
|
Loading…
Reference in a new issue