From 90baacc3f8104c3e401473cac9a0a3bd574f960d Mon Sep 17 00:00:00 2001
From: brynnchernosky <56202540+brynnchernosky@users.noreply.github.com>
Date: Mon, 1 May 2023 14:58:32 -0400
Subject: refactor weight

---
 src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx | 10 ----------
 1 file changed, 10 deletions(-)

(limited to 'src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx')

diff --git a/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx b/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx
index 446c4933b..bdc76048c 100644
--- a/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx
+++ b/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx
@@ -133,7 +133,6 @@ export default class PhysicsSimulationBox extends ViewBoxAnnotatableComponent<Fi
     this.dataDoc.startVelX = this.dataDoc.startVelX ?? 0;
     this.dataDoc.startVelY = this.dataDoc.startVelY ?? 0;
     this.dataDoc.stepNumber = this.dataDoc.stepNumber ?? 0;
-    this.dataDoc.timer = this.dataDoc.timer ?? 0;
     this.dataDoc.updatedForces = this.dataDoc.updatedForces ?? [];
     this.dataDoc.velocityXDisplay = this.dataDoc.velocityXDisplay ?? 0;
     this.dataDoc.velocityYDisplay = this.dataDoc.velocityYDisplay ?? 0;
@@ -1232,13 +1231,6 @@ export default class PhysicsSimulationBox extends ViewBoxAnnotatableComponent<Fi
     ]);
   }
 
-  // Timer for animating the simulation, update every 0.05 seconds
-  setInterval(() => {
-    setTimer(timer + 1);
-  }, 50);
-
-
-
   render () { 
     <div className="physicsSimApp">
     <div className="mechanicsSimulationContainer">
@@ -1301,7 +1293,6 @@ export default class PhysicsSimulationBox extends ViewBoxAnnotatableComponent<Fi
               displayXVelocity={this.dataDoc.velocityXDisplay}
               displayYVelocity={this.dataDoc.velocityYDisplay}
               elasticCollisions={this.dataDoc.elasticCollisions}
-              incrementTime={this.dataDoc.timer}
               mass={this.dataDoc.mass}
               mode={this.dataDoc.mode}
               noMovement={this.dataDoc.noMovement}
@@ -1350,7 +1341,6 @@ export default class PhysicsSimulationBox extends ViewBoxAnnotatableComponent<Fi
                 displayXVelocity={this.dataDoc.velocityXDisplay2}
                 displayYVelocity={this.dataDoc.velocityYDisplay2}
                 elasticCollisions={this.dataDoc.elasticCollisions}
-                incrementTime={this.dataDoc.timer}
                 mass={this.dataDoc.mass2}
                 mode={this.dataDoc.mode}
                 noMovement={this.dataDoc.noMovement}
-- 
cgit v1.2.3-70-g09d2

