Remove unecessary function call
This commit is contained in:
parent
dfb398a8f8
commit
b0556b301b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user