diff --git a/src/blocks/mrc_print.ts b/src/blocks/mrc_print.ts deleted file mode 100644 index 1589efa7..00000000 --- a/src/blocks/mrc_print.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * @license - * Copyright 2025 Porpoiseful LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * @fileoverview Create a component that does a simple print statement - * @author alan@porpoiseful.com (Alan Smith) - */ -import * as Blockly from 'blockly'; -import { PythonGenerator } from 'blockly/python'; -import { Order } from 'blockly/python'; - -export const BLOCK_NAME = 'mrc_print'; - -export const setup = function() { - Blockly.Blocks[BLOCK_NAME] = { - init: function() { - this.appendValueInput('TEXT') - .setCheck('String') - .appendField(Blockly.Msg['MRC_PRINT']); - this.setPreviousStatement(true); - this.setNextStatement(true); - this.setStyle('text_blocks'); - }, - }; -}; - -export const pythonFromBlock = function( - block: Blockly.Block, - generator: PythonGenerator, -) { - return 'print(' + generator.valueToCode(block, 'TEXT', Order.NONE) + ')\n'; -}; \ No newline at end of file diff --git a/src/blocks/setup_custom_blocks.ts b/src/blocks/setup_custom_blocks.ts index 3a303460..ddc23917 100644 --- a/src/blocks/setup_custom_blocks.ts +++ b/src/blocks/setup_custom_blocks.ts @@ -17,7 +17,6 @@ import * as Event from './mrc_event'; import * as GetParameter from './mrc_get_parameter'; import * as ParameterMutator from './mrc_param_container' import * as EventHandler from './mrc_event_handler'; -import * as Print from './mrc_print'; const customBlocks = [ CallPythonFunction, @@ -38,7 +37,6 @@ const customBlocks = [ GetParameter, ParameterMutator, EventHandler, - Print ]; export const setup = function(forBlock: any) {