mirror of https://github.com/mgba-emu/mgba.git
Core: Remove unused variable
This commit is contained in:
parent
caee44a592
commit
47344bc08a
|
@ -55,13 +55,11 @@ void mTimingDeschedule(struct mTiming* timing, struct mTimingEvent* event) {
|
|||
}
|
||||
|
||||
bool mTimingIsScheduled(const struct mTiming* timing, const struct mTimingEvent* event) {
|
||||
struct mTimingEvent* const* previous = &timing->root;
|
||||
const struct mTimingEvent* next = timing->root;
|
||||
while (next) {
|
||||
if (next == event) {
|
||||
return true;
|
||||
}
|
||||
previous = &next->next;
|
||||
next = next->next;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue