From 0e2b7ea69d7bba8e6bd91c8f5d6d3bb29b0eea88 Mon Sep 17 00:00:00 2001 From: Gavin McDonald Date: Fri, 28 Sep 2018 20:42:03 -0400 Subject: [PATCH] cleanup --- src/utils.js | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/utils.js b/src/utils.js index fbb57a3..59bee80 100644 --- a/src/utils.js +++ b/src/utils.js @@ -9,26 +9,6 @@ export const sqrt2 = Math.sqrt(2); // (2*S gives long width) export const sqrt3 = Math.sqrt(3); -//export function throttleEvent(type, name, obj) { -// obj = obj || window; -// let running = false; -// -// let throttle = () => { -// if (!running) { -// running = true; -// -// requestAnimationFrame(() => { -// obj.dispatchEvent(new CustomEvent(name)); -// running = false; -// }); -// } -// } -// -// obj.addEventListener(type, throttle); -//} -// -//throttleEvent('resize', 'optimizedResize'); - export function clone(obj) { return JSON.parse(JSON.stringify(obj)); }