mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +01:00
Cleanup
This commit is contained in:
@@ -32,7 +32,6 @@ goog.require('Blockly.utils.string');
|
||||
goog.require('Blockly.Workspace');
|
||||
|
||||
goog.requireType('Blockly.IASTNodeLocation');
|
||||
goog.requireType('Blockly.connectionTypeChecker');
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -494,6 +494,7 @@ Blockly.Connection.prototype.targetBlock = function() {
|
||||
* @return {boolean} True if the connections share a type.
|
||||
*/
|
||||
Blockly.Connection.prototype.checkType = function(otherConnection) {
|
||||
// TODO (fenichel): Add deprecation warnings.
|
||||
return this.getConnectionTypeChecker().canConnect(this, otherConnection,
|
||||
false);
|
||||
};
|
||||
|
||||
@@ -1,3 +1,14 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2020 Google LLC
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview An object that encapsulates logic for checking whether a potential
|
||||
* connection is safe and valid.
|
||||
* @author fenichel@google.com (Rachel Fenichel)
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
goog.provide('Blockly.ConnectionTypeChecker');
|
||||
|
||||
@@ -16,8 +16,6 @@ goog.provide('Blockly.ConnectionDB');
|
||||
|
||||
goog.require('Blockly.RenderedConnection');
|
||||
|
||||
goog.requireType('Blockly.ConnectionTypeChecker');
|
||||
|
||||
|
||||
/**
|
||||
* Database of connections.
|
||||
|
||||
Reference in New Issue
Block a user