Skip to content

Commit

Permalink
Remove console.log debugging information at runtime.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denz1994 committed Mar 9, 2020
1 parent 6888d1d commit 14cd011
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions js/common/model/Kit.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,24 +528,6 @@ class Kit {

const newMolecule = MoleculeStructure.getCombinedMoleculeFromBond( molA, molB, a, b, new Molecule() );

// sanity check and debugging information
if ( !newMolecule.isValid() ) {
// TODO: performance: strip this out for the runtime?
window.console && console.log && console.log( 'invalid molecule!' );
window.console && console.log && console.log( 'bonding: ' + a.symbol + '(' + a.reference + '), ' + dirAtoB + ' ' + b.symbol + ' (' + b.reference + ')' );
window.console && console.log && console.log( 'A' );
window.console && console.log && console.log( molA.getDebuggingDump() );
window.console && console.log && console.log( 'B' );
window.console && console.log && console.log( molB.getDebuggingDump() );
window.console && console.log && console.log( 'combined' );
window.console && console.log && console.log( newMolecule.getDebuggingDump() );

window.console && console.log && console.log( 'found: ' + this.isAllowedStructure( newMolecule ) );

// just exit out for now
return;
}

this.removeMolecule( molA );
this.removeMolecule( molB );
this.addMolecule( newMolecule );
Expand Down

0 comments on commit 14cd011

Please sign in to comment.