Remove old code

This commit is contained in:
JonOfUs 2023-02-14 19:58:15 +01:00
parent 6cf98e2da8
commit 05846326b2

View file

@ -75,10 +75,6 @@
const { completedTests, startedTests, timeTyping } = typingStats;
const { time, words } = personalBests;
function maxReducer({ prev_wpm, prev_acc }, { current_wpm, current_acc }) {
return (prev_wpm > current_wpm) ? { prev_wpm, prev_acc } : { current_wpm, current_acc }
}
function getMaxWpmAcc(stats) {
var max_acc = 0.0; var max_wpm = 0.0;
for ({ wpm, acc } of stats) {
@ -91,11 +87,6 @@
}
const best15s = getMaxWpmAcc(time['15']);
function maxReducer(prev, current) {
return (prev > current) ? prev : current
}
const best30s = getMaxWpmAcc(time['30']);
const best60s = getMaxWpmAcc(time['60']);
const best120s = getMaxWpmAcc(time['120']);