From 0ac86c7e6814e344d855470eece732f0225d29f3 Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Tue, 8 Aug 2023 10:06:03 -0700 Subject: [PATCH] fix: dedeprecate render functions (#7359) --- 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 e4053de0a..81dd63ded 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 01888e55f..e9134aec0 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.