all repos — mgba @ a95e2c06b73e9023a53d928e047e68bfd050cd2e

mGBA Game Boy Advance Emulator

Remove unused function
Jeffrey Pfau jeffrey@endrift.com
Sun, 20 Jul 2014 01:40:05 -0700
commit

a95e2c06b73e9023a53d928e047e68bfd050cd2e

parent

16cf38998672f6b4b9c0c8aae2dcdd75b9af9725

2 files changed, 0 insertions(+), 10 deletions(-)

jump to
M src/gba/gba-savedata.csrc/gba/gba-savedata.c

@@ -20,14 +20,6 @@ savedata->flashState = FLASH_STATE_RAW;

savedata->vf = vf; } -void GBASavedataForceType(struct GBASavedata* savedata, enum SavedataType type) { - if (savedata->type != SAVEDATA_NONE) { - GBALog(0, GBA_LOG_WARN, "Can't re-initialize savedata"); - return; - } - savedata->type = type; -} - void GBASavedataDeinit(struct GBASavedata* savedata) { if (savedata->vf) { switch (savedata->type) {
M src/gba/gba-savedata.hsrc/gba/gba-savedata.h

@@ -72,8 +72,6 @@

void GBASavedataInit(struct GBASavedata* savedata, struct VFile* vf); void GBASavedataDeinit(struct GBASavedata* savedata); -void GBASavedataForceType(struct GBASavedata* savedata, enum SavedataType type); - void GBASavedataInitFlash(struct GBASavedata* savedata); void GBASavedataInitEEPROM(struct GBASavedata* savedata); void GBASavedataInitSRAM(struct GBASavedata* savedata);