Remove old code
This commit is contained in:
parent
6cf98e2da8
commit
05846326b2
1 changed files with 0 additions and 9 deletions
|
@ -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']);
|
||||
|
|
Loading…
Reference in a new issue