mirror of
https://github.com/google/blockly.git
synced 2026-01-06 08:30:13 +01:00
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:
20
core/xml.ts
20
core/xml.ts
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user