Skip to content

Commit

Permalink
refactor: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Jun 19, 2024
1 parent 47ef47b commit b0520f7
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions frontends/web/ts/gb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -663,27 +663,6 @@ export class GameboyEmulator extends EmulatorLogic implements Emulator {
this._serialDevice = value;
}

async toggleRunning() {
if (this.paused) {
await this.resume();
} else {
await this.pause();
}
}

async pause() {
this.paused = true;
}

async resume() {
this.paused = false;
this.nextTickTime = EmulatorLogic.now();
}

async reset() {
await this.boot({ engine: null });
}

keyPress(key: string) {
const keyCode = KEYS_NAME[key];
if (keyCode === undefined) return;
Expand Down

0 comments on commit b0520f7

Please sign in to comment.