From b0556b301bcc8c799f0f10f011e4242b10c6134a Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Wed, 18 Dec 2019 22:47:55 +0700 Subject: [PATCH] Remove unecessary function call --- vocoder/static/vocoder.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/vocoder/static/vocoder.js b/vocoder/static/vocoder.js index b97c1c2..21a4ccd 100644 --- a/vocoder/static/vocoder.js +++ b/vocoder/static/vocoder.js @@ -127,13 +127,6 @@ class GeneratedShape { } } -function generateNewShape() { - /** - * Create a new p5.js shape. - **/ - return new GeneratedShape(); -} - function setup() { /** * The p5.js initial setup function. @@ -147,7 +140,7 @@ function draw() { * The p5.js draw loop. **/ if (newSoundJustRecorded === true) { - shapes.push(generateNewShape()); + shapes.push(new GeneratedShape()); newSoundJustRecorded = false; }