Remove unecessary function call

This commit is contained in:
Luke Murphy 2019-12-18 22:47:55 +07:00
parent dfb398a8f8
commit b0556b301b
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -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;
}