Skip to content

Commit

Permalink
Remove unused callfunc
Browse files Browse the repository at this point in the history
  • Loading branch information
AsparagusEduardo committed Jun 2, 2024
1 parent 3202625 commit da91e6a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions asm/macros/event.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion data/script_cmd_table.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 0 additions & 6 deletions src/scrcmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit da91e6a

Please sign in to comment.