From 1cd8d74d34a60e2526e156a3130332a6b3e1dde6 Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Fri, 4 Aug 2023 21:39:48 +0000 Subject: [PATCH] fix: dedeprecate render functions --- core/block_svg.ts | 5 ----- core/workspace_svg.ts | 6 ------ 2 files changed, 11 deletions(-) diff --git a/core/block_svg.ts b/core/block_svg.ts index e4053de0a9c..81dd63ded58 100644 --- a/core/block_svg.ts +++ b/core/block_svg.ts @@ -1548,13 +1548,8 @@ export class BlockSvg /** * Immediately lays out and reflows a block based on its contents and * settings. - * - * @deprecated Renders are triggered automatically when the block is modified - * (e.g. fields are modified or inputs are added). Any calls to render() - * are no longer necessary. To be removed in v11. */ render() { - deprecation.warn('Blockly.BlockSvg.prototype.render', 'v10', 'v11'); this.queueRender(); renderManagement.triggerQueuedRenders(); } diff --git a/core/workspace_svg.ts b/core/workspace_svg.ts index 01888e55f69..e9134aec085 100644 --- a/core/workspace_svg.ts +++ b/core/workspace_svg.ts @@ -78,7 +78,6 @@ import * as Xml from './xml.js'; import {ZoomControls} from './zoom_controls.js'; import {ContextMenuOption} from './contextmenu_registry.js'; import * as renderManagement from './render_management.js'; -import * as deprecation from './utils/deprecation.js'; /** Margin around the top/bottom/left/right after a zoomToFit call. */ const ZOOM_TO_FIT_MARGIN = 20; @@ -1232,13 +1231,8 @@ export class WorkspaceSvg extends Workspace implements IASTNodeLocationSvg { /** * Render all blocks in workspace. - * - * @deprecated Renders are triggered automatically when the block is modified - * (e.g. fields are modified or inputs are added). Any calls to render() - * are no longer necessary. To be removed in v11. */ render() { - deprecation.warn('Blockly.WorkspaceSvg.prototype.render', 'v10', 'v11'); // Generate list of all blocks. const blocks = this.getAllBlocks(false); // Render each block.