Skip to content

Commit

Permalink
Remove unused mocked functions
Browse files Browse the repository at this point in the history
  • Loading branch information
rhargreaves committed Feb 20, 2025
1 parent a11fbc2 commit ae2dbf0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
2 changes: 0 additions & 2 deletions tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,7 @@ MD_MOCKS=SYS_setVIntCallback \
SYS_setExtIntCallback \
SYS_setInterruptMaskLevel \
SPR_init \
SPR_setAnim \
SPR_setFrame \
SPR_setAnimAndFrame \
SPR_setVisibility \
comm_megawifi_is_present \
comm_megawifi_read_ready \
Expand Down
11 changes: 0 additions & 11 deletions tests/mocks/mock_sgdk.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,21 +74,10 @@ void __wrap_VDP_setPaletteColors(u16 index, const u16* values, u16 count)
{
}

void __wrap_SPR_setAnim(Sprite* sprite, s16 anim)
{
}

void __wrap_SPR_setFrame(Sprite* sprite, s16 frame)
{
}

void __wrap_SPR_setAnimAndFrame(Sprite* sprite, s16 anim, s16 frame)
{
check_expected(sprite);
check_expected(anim);
check_expected(frame);
}

void __wrap_VDP_setReg(u16 reg, u8 value)
{
}
Expand Down
2 changes: 0 additions & 2 deletions tests/mocks/mock_sgdk.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ void __wrap_SPR_init(u16 maxSprite, u16 vramSize, u16 unpackBufferSize);
void __wrap_PAL_setColor(u16 index, u16 value);
void __wrap_PAL_setColors(u16 index, const u16* pal, u16 count, TransferMethod tm);
void __wrap_VDP_setBackgroundColor(u8 index);
void __wrap_SPR_setAnim(Sprite* sprite, s16 anim);
void __wrap_SPR_setFrame(Sprite* sprite, s16 frame);
void __wrap_SPR_setAnimAndFrame(Sprite* sprite, s16 anim, s16 frame);
void __wrap_SPR_setVisibility(Sprite* sprite, SpriteVisibility value);
void __wrap_VDP_setReg(u16 reg, u8 value);
u8 __wrap_VDP_getReg(u16 reg);
Expand Down

0 comments on commit ae2dbf0

Please sign in to comment.