From ff901a7773f1affc5bae90826f502ff5bd0ac6e5 Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Mon, 19 Nov 2018 16:26:18 -0800 Subject: [PATCH] Comment cleanup; remove logs --- core/insertion_marker_manager.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/core/insertion_marker_manager.js b/core/insertion_marker_manager.js index 10dbb6d0f..fb2fbd81b 100644 --- a/core/insertion_marker_manager.js +++ b/core/insertion_marker_manager.js @@ -80,7 +80,6 @@ Blockly.InsertionMarkerManager = function(block) { /** * The insertion marker that shows up between blocks to show where a block * would go if dropped immediately. - * This is the scratch-blocks equivalent of connection highlighting. * @type {Blockly.BlockSvg} * @private */ @@ -117,7 +116,6 @@ Blockly.InsertionMarkerManager = function(block) { /** * Connection on the insertion marker block that corresponds to * this.localConnection_ on the currently dragged block. - * This is part of the scratch-blocks equivalent of connection highlighting. * @type {Blockly.RenderedConnection} * @private */ @@ -240,8 +238,6 @@ Blockly.InsertionMarkerManager.prototype.update = function(dxy, deleteArea) { this.shouldUpdatePreviews_(candidate, dxy); if (shouldUpdate) { - //console.log("updating previews"); - //console.log(candidate); // Don't fire events for insertion marker creation or movement. Blockly.Events.disable(); this.maybeHidePreview_(candidate); @@ -373,7 +369,6 @@ Blockly.InsertionMarkerManager.prototype.shouldUpdatePreviews_ = function( */ Blockly.InsertionMarkerManager.prototype.getCandidate_ = function(dxy) { var radius = this.getStartRadius_(); - //console.log(radius); var candidateClosest = null; var candidateLocal = null; @@ -381,15 +376,11 @@ Blockly.InsertionMarkerManager.prototype.getCandidate_ = function(dxy) { var myConnection = this.availableConnections_[i]; var neighbour = myConnection.closest(radius, dxy); if (neighbour.connection) { - //console.log('neighbour: '); - //console.log(neighbour.connection); - //console.log('Is insertion marker: ' + neighbour.connection.sourceBlock_.isInsertionMarker()); candidateClosest = neighbour.connection; candidateLocal = myConnection; radius = neighbour.radius; } } - //console.log(radius); return { closest: candidateClosest, local: candidateLocal, @@ -588,8 +579,6 @@ Blockly.InsertionMarkerManager.prototype.hidePreview_ = function() { /** * Add highlighting showing which block will be replaced. - * Scratch-specific code, where "highlighting" applies to a block rather than - * a connection. */ Blockly.InsertionMarkerManager.prototype.highlightBlock_ = function() { var closest = this.closestConnection_; @@ -607,8 +596,6 @@ Blockly.InsertionMarkerManager.prototype.highlightBlock_ = function() { /** * Get rid of the highlighting marking the block that will be replaced. - * Scratch-specific code, where "highlighting" applies to a block rather than - * a connection. */ Blockly.InsertionMarkerManager.prototype.unhighlightBlock_ = function() { var closest = this.closestConnection_;