mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-08 05:03:39 +08:00
removed unused variable
This commit is contained in:
parent
67531c636f
commit
951fc391fd
3 changed files with 0 additions and 9 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
|
|
@ -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++;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue