From 8ae3dc3d5e28d28247e88e3564d23b4e2c64f430 Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Tue, 14 Jul 2020 17:02:28 -0600 Subject: [PATCH] Cleanup --- core/block.js | 1 - core/connection.js | 1 + core/connection_checks.js | 11 +++++++++++ core/connection_db.js | 2 -- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/core/block.js b/core/block.js index 9aabe7edb..ff513cd8b 100644 --- a/core/block.js +++ b/core/block.js @@ -32,7 +32,6 @@ goog.require('Blockly.utils.string'); goog.require('Blockly.Workspace'); goog.requireType('Blockly.IASTNodeLocation'); -goog.requireType('Blockly.connectionTypeChecker'); /** diff --git a/core/connection.js b/core/connection.js index 92e578d11..ab4fec6bc 100644 --- a/core/connection.js +++ b/core/connection.js @@ -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); }; diff --git a/core/connection_checks.js b/core/connection_checks.js index 8b52697da..849f91979 100644 --- a/core/connection_checks.js +++ b/core/connection_checks.js @@ -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'); diff --git a/core/connection_db.js b/core/connection_db.js index c45163509..104ad46b0 100644 --- a/core/connection_db.js +++ b/core/connection_db.js @@ -16,8 +16,6 @@ goog.provide('Blockly.ConnectionDB'); goog.require('Blockly.RenderedConnection'); -goog.requireType('Blockly.ConnectionTypeChecker'); - /** * Database of connections.