From 97a43795272392af8cac5a6717f7b95f080a0349 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Sat, 16 Oct 2021 15:14:18 +0200 Subject: [PATCH] remove throttle.js since its not used at all --- frontend/src/util/throttle.js | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 frontend/src/util/throttle.js diff --git a/frontend/src/util/throttle.js b/frontend/src/util/throttle.js deleted file mode 100644 index d035cb748..000000000 --- a/frontend/src/util/throttle.js +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Simple throttle function that executes a passed function only once in the specified timeout - * @param handlerFunc - * @param [timeout] the throttle interval - */ -export function throttle(handlerFunc, timeout = 66) { - let resizeTimeout - if (!resizeTimeout) { - resizeTimeout = setTimeout(() => { - resizeTimeout = null - handlerFunc() - // The actualResizeHandler will execute at a rate of 15fps - }, timeout) - } -}