From d7cd31542a991e457cb660152de7dda5303a85bb Mon Sep 17 00:00:00 2001 From: "Carter J. Bastian" Date: Wed, 8 Mar 2017 12:15:03 -0500 Subject: [PATCH] Get rid of debugging print statements --- app/components/Diagram.js | 9 --------- app/containers/App.js | 4 ---- 2 files changed, 13 deletions(-) diff --git a/app/components/Diagram.js b/app/components/Diagram.js index c6edac9..52b3bdb 100644 --- a/app/components/Diagram.js +++ b/app/components/Diagram.js @@ -39,7 +39,6 @@ export default class Diagram extends Component { // If not currently connection, start connecting if (this.state.setConnectionPoint == null || !this.state.isConnecting) { - console.log("Setting connection mode with starter point %s\n", component.props.id); this.setState({ circles: this.state.circles, squares: this.state.squares, @@ -76,9 +75,6 @@ export default class Diagram extends Component { path: pathString, }); - console.log("Updated Connections:\n"); - console.log(updatedConnections); - this.setState({ circles: this.state.circles, squares: this.state.squares, @@ -129,9 +125,6 @@ export default class Diagram extends Component { } topLeftY = snappedY + 5; - console.log(topLeftX); - console.log(topLeftY); - // Add a new Rectangle if (this.props.shape == 'Rect') { // Center the square @@ -217,8 +210,6 @@ export default class Diagram extends Component { connections: this.state.connections, }); } - - console.log(this.state); }; diff --git a/app/containers/App.js b/app/containers/App.js index 9dcf3a7..d1ba165 100644 --- a/app/containers/App.js +++ b/app/containers/App.js @@ -39,10 +39,6 @@ export default class App extends Component { // Handle ShapeOption Click onShapeOptionClick(component, e) { // Set the state of the app based on the option click - console.log("Before: Shape: %s, Size: %s\n", this.state.shape, this.state.size); - - // Check for various known options - switch(component.props.option) { // Two cases for shapes case 'Rect':