From c9a2edaf3d8c31a8d4b6ea63a54e89bd56f3a87c Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Fri, 3 Jul 2020 20:56:45 -0400 Subject: [PATCH] Remove unused function --- src/content.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/content.ts b/src/content.ts index 6d8ae79b..0feb3e61 100644 --- a/src/content.ts +++ b/src/content.ts @@ -1598,18 +1598,6 @@ function updateAdFlag() { } } -function formatTime(seconds) { - if(isNaN(seconds)) return - const h = Math.floor(seconds / 3600); - const m = Math.floor((seconds % 3600) / 60); - const s = Math.round(seconds % 60); - return [ - h, - m > 9 ? m : (h ? '0' + m : m || '0'), - s > 9 ? s : '0' + s - ].filter(Boolean).join(':'); -} - function showTimeWithoutSkips(allSponsorTimes): void { let skipDuration = 0;