GBA Hardware: Remove leftover code

This commit is contained in:
Vicki Pfau 2017-10-16 22:48:08 -07:00
parent d3526be8f5
commit 433759f1fe
2 changed files with 0 additions and 20 deletions

View File

@ -177,7 +177,6 @@ struct GBACartridgeHardware {
void GBAHardwareInit(struct GBACartridgeHardware* gpio, uint16_t* gpioBase);
void GBAHardwareClear(struct GBACartridgeHardware* gpio);
int32_t GBAHardwareProcessEvents(struct GBA* gba, int32_t cycles);
void GBAHardwareInitRTC(struct GBACartridgeHardware* gpio);
void GBAHardwareInitGyro(struct GBACartridgeHardware* gpio);

View File

@ -40,7 +40,6 @@ static void _eReaderReset(struct GBACartridgeHardware* hw);
static void _eReaderWriteControl0(struct GBACartridgeHardware* hw, uint8_t value);
static void _eReaderWriteControl1(struct GBACartridgeHardware* hw, uint8_t value);
static void _eReaderReadData(struct GBACartridgeHardware* hw);
static int32_t _eReaderProcessEvents(struct GBACartridgeHardware* hw, int32_t cycles);
static const int RTC_BYTES[8] = {
0, // Force reset
@ -82,13 +81,6 @@ void GBAHardwareClear(struct GBACartridgeHardware* hw) {
}
}
int32_t GBAHardwareProcessEvents(struct GBA* gba, int32_t cycles) {
if (gba->memory.hw.devices & HW_EREADER) {
return _eReaderProcessEvents(&gba->memory.hw, cycles);
}
return INT_MAX;
}
void GBAHardwareGPIOWrite(struct GBACartridgeHardware* hw, uint32_t address, uint16_t value) {
if (!hw->gpioBase) {
return;
@ -795,17 +787,6 @@ void _eReaderReadData(struct GBACartridgeHardware* hw) {
}
}
static int32_t _eReaderProcessEvents(struct GBACartridgeHardware* hw, int32_t cycles) {
if (hw->eReaderState != EREADER_SERIAL_INACTIVE) {
hw->eReaderDelay += cycles;
if (hw->eReaderDelay > 1024) {
mLOG(GBA_HW, DEBUG, "[e-Reader] Command timed out");
hw->eReaderState = EREADER_SERIAL_INACTIVE;
}
}
return INT_MAX;
}
// == Serialization
void GBAHardwareSerialize(const struct GBACartridgeHardware* hw, struct GBASerializedState* state) {