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
|
_dynmultichoice \left, \top, \ignoreBPress, \maxBeforeScroll, \shouldSort, \initialSelected, \callbacks, NULL
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
@ Like callnative, but can return a value. TODO: Replace uses with callnative.
|
|
||||||
.macro callfunc func:req
|
|
||||||
.byte 0xe5
|
|
||||||
.4byte \func
|
|
||||||
.endm
|
|
||||||
|
|
||||||
|
|
||||||
@ Supplementary
|
@ Supplementary
|
||||||
|
|
||||||
.macro goto_if_unset flag:req, dest:req
|
.macro goto_if_unset flag:req, dest:req
|
||||||
|
|
|
@ -229,7 +229,6 @@ gScriptCmdTable::
|
||||||
.4byte ScrCmd_bufferitemnameplural @ 0xe2
|
.4byte ScrCmd_bufferitemnameplural @ 0xe2
|
||||||
.4byte ScrCmd_dynmultichoice @ 0xe3
|
.4byte ScrCmd_dynmultichoice @ 0xe3
|
||||||
.4byte ScrCmd_dynmultipush @ 0xe4
|
.4byte ScrCmd_dynmultipush @ 0xe4
|
||||||
.4byte ScrCmd_callfunc @ 0xe5
|
|
||||||
|
|
||||||
gScriptCmdTableEnd::
|
gScriptCmdTableEnd::
|
||||||
.4byte ScrCmd_nop
|
.4byte ScrCmd_nop
|
||||||
|
|
|
@ -145,12 +145,6 @@ bool8 ScrCmd_callnative(struct ScriptContext *ctx)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool8 ScrCmd_callfunc(struct ScriptContext *ctx)
|
|
||||||
{
|
|
||||||
u32 func = ScriptReadWord(ctx);
|
|
||||||
return ((ScrCmdFunc) func)(ctx);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool8 ScrCmd_waitstate(struct ScriptContext *ctx)
|
bool8 ScrCmd_waitstate(struct ScriptContext *ctx)
|
||||||
{
|
{
|
||||||
ScriptContext_Stop();
|
ScriptContext_Stop();
|
||||||
|
|
Loading…
Reference in a new issue