From 05846326b261747a8ec47abbc957c2164536ed96 Mon Sep 17 00:00:00 2001 From: JonOfUs Date: Tue, 14 Feb 2023 19:58:15 +0100 Subject: [PATCH] Remove old code --- index.html | 9 --------- 1 file changed, 9 deletions(-) diff --git a/index.html b/index.html index 8553b4c..81fc938 100644 --- a/index.html +++ b/index.html @@ -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']);