chore: remove deprecated functionality for v10 (#7077)

* chore: remove deprecated functionality in events files

* chore: remove deprecated items in renderers

* chore: remove deprecated items in core

* chore: remove mixin deprecation

* chore: fix tests after removing deprecations
This commit is contained in:
Rachel Fenichel
2023-05-11 14:30:54 -07:00
committed by GitHub
parent bef5526f1c
commit de904ab128
54 changed files with 24 additions and 1903 deletions

View File

@@ -10,7 +10,6 @@ goog.declareModuleId('Blockly.Xml');
import type {Block} from './block.js';
import type {BlockSvg} from './block_svg.js';
import type {Connection} from './connection.js';
import * as deprecation from './utils/deprecation.js';
import * as eventUtils from './events/utils.js';
import type {Field} from './field.js';
import {inputTypes} from './inputs/input_types.js';
@@ -374,25 +373,6 @@ export function domToPrettyText(dom: Node): string {
return text.replace(/^\n/, '');
}
/**
* Converts an XML string into a DOM structure.
*
* @param text An XML string.
* @returns A DOM object representing the singular child of the document
* element.
* @throws if the text doesn't parse.
* @deprecated Moved to core/utils/xml.js.
*/
export function textToDom(text: string): Element {
deprecation.warn(
'Blockly.Xml.textToDom',
'version 9',
'version 10',
'Use Blockly.utils.xml.textToDom instead'
);
return utilsXml.textToDom(text);
}
/**
* Clear the given workspace then decode an XML DOM and
* create blocks on the workspace.