This commit is contained in:
Rachel Fenichel
2018-11-19 12:51:18 -08:00
parent 991b70410e
commit d70e89d1e0

View File

@@ -245,14 +245,6 @@ Blockly.Connection.prototype.dispose = function() {
this.dbOpposite_ = null;
};
/**
* @return {boolean} true if the connection is not connected or is connected to
* an insertion marker, false otherwise.
*/
Blockly.Connection.prototype.isConnectedToNonInsertionMarker = function() {
return this.targetConnection && !this.targetBlock().isInsertionMarker();
};
/**
* Get the source block for this connection.
* @return {Blockly.Block} The source block, or null if there is none.
@@ -379,7 +371,7 @@ Blockly.Connection.prototype.canConnectToPrevious_ = function(candidate) {
}
var targetBlock = candidate.targetBlock();
// If it is connected a real block, game over.
// If it is connected to a real block, game over.
if (!targetBlock.isInsertionMarker()) {
return false;
}