removed unused variable

This commit is contained in:
Miodec 2023-07-28 22:01:43 +02:00
parent 67531c636f
commit 951fc391fd
3 changed files with 0 additions and 9 deletions

View file

@ -268,7 +268,6 @@ function handleSpace(): void {
}
Replay.addReplayEvent("submitErrorWord");
}
TestInput.updateLastKeypress();
let wordLength: number;
if (Config.mode === "zen") {
@ -586,7 +585,6 @@ function handleChar(
}
TestInput.incrementKeypressCount();
TestInput.updateLastKeypress();
TestInput.pushKeypressWord(TestWords.words.currentIndex);
if (

View file

@ -225,7 +225,6 @@ export let currentKeypress: Keypress = {
words: [],
afk: true,
};
export let lastKeypress: number;
export let currentBurstStart = 0;
export let missedWords: {
[word: string]: number;
@ -262,10 +261,6 @@ export function enableSpacingDebug(): void {
console.clear();
}
export function updateLastKeypress(): void {
lastKeypress = performance.now();
}
export function incrementKeypressCount(): void {
currentKeypress.count++;
}

View file

@ -47,7 +47,6 @@ interface DebugStats {
words: number[];
afk: boolean;
};
lastKeypress: number;
currentBurstStart: number;
lastSecondNotRound: boolean;
missedWords: {
@ -117,7 +116,6 @@ export function getStats(): DebugStats {
burstHistory: TestInput.burstHistory,
keypressPerSecond: TestInput.keypressPerSecond,
currentKeypress: TestInput.currentKeypress,
lastKeypress: TestInput.lastKeypress,
currentBurstStart: TestInput.currentBurstStart,
lastSecondNotRound,
missedWords: TestInput.missedWords,