Skip to content

Commit 0ac86c7

Browse files
authored
fix: dedeprecate render functions (#7359)
1 parent 826510f commit 0ac86c7

2 files changed

Lines changed: 0 additions & 11 deletions

File tree

core/block_svg.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,13 +1548,8 @@ export class BlockSvg
15481548
/**
15491549
* Immediately lays out and reflows a block based on its contents and
15501550
* settings.
1551-
*
1552-
* @deprecated Renders are triggered automatically when the block is modified
1553-
* (e.g. fields are modified or inputs are added). Any calls to render()
1554-
* are no longer necessary. To be removed in v11.
15551551
*/
15561552
render() {
1557-
deprecation.warn('Blockly.BlockSvg.prototype.render', 'v10', 'v11');
15581553
this.queueRender();
15591554
renderManagement.triggerQueuedRenders();
15601555
}

core/workspace_svg.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ import * as Xml from './xml.js';
7878
import {ZoomControls} from './zoom_controls.js';
7979
import {ContextMenuOption} from './contextmenu_registry.js';
8080
import * as renderManagement from './render_management.js';
81-
import * as deprecation from './utils/deprecation.js';
8281

8382
/** Margin around the top/bottom/left/right after a zoomToFit call. */
8483
const ZOOM_TO_FIT_MARGIN = 20;
@@ -1232,13 +1231,8 @@ export class WorkspaceSvg extends Workspace implements IASTNodeLocationSvg {
12321231

12331232
/**
12341233
* Render all blocks in workspace.
1235-
*
1236-
* @deprecated Renders are triggered automatically when the block is modified
1237-
* (e.g. fields are modified or inputs are added). Any calls to render()
1238-
* are no longer necessary. To be removed in v11.
12391234
*/
12401235
render() {
1241-
deprecation.warn('Blockly.WorkspaceSvg.prototype.render', 'v10', 'v11');
12421236
// Generate list of all blocks.
12431237
const blocks = this.getAllBlocks(false);
12441238
// Render each block.

0 commit comments

Comments
 (0)