mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
Remove some old deprecated functions
This commit is contained in:
11
core/css.js
11
core/css.js
@@ -72,17 +72,6 @@ Blockly.Css.inject = function(hasCss, pathToMedia) {
|
||||
document.head.insertBefore(cssNode, document.head.firstChild);
|
||||
};
|
||||
|
||||
/**
|
||||
* Set the cursor to be displayed when over something draggable.
|
||||
* See https://github.com/google/blockly/issues/981 for context.
|
||||
* @param {*} _cursor Enum.
|
||||
* @deprecated April 2017.
|
||||
*/
|
||||
Blockly.Css.setCursor = function(_cursor) {
|
||||
console.warn('Deprecated call to Blockly.Css.setCursor. ' +
|
||||
'See issue #981 for context');
|
||||
};
|
||||
|
||||
/**
|
||||
* Array making up the CSS content for Blockly.
|
||||
*/
|
||||
|
||||
@@ -63,20 +63,6 @@ Blockly.Variables.allUsedVarModels = function(ws) {
|
||||
return variableList;
|
||||
};
|
||||
|
||||
/**
|
||||
* Find all user-created variables that are in use in the workspace and return
|
||||
* only their names.
|
||||
* For use by generators.
|
||||
* To get a list of all variables on a workspace, including unused variables,
|
||||
* call Workspace.getAllVariables.
|
||||
* @deprecated January 2018
|
||||
*/
|
||||
Blockly.Variables.allUsedVariables = function() {
|
||||
console.warn('Deprecated call to Blockly.Variables.allUsedVariables. ' +
|
||||
'Use Blockly.Variables.allUsedVarModels instead.\nIf this is a major ' +
|
||||
'issue please file a bug on GitHub.');
|
||||
};
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {Object<string,boolean>}
|
||||
|
||||
@@ -409,21 +409,6 @@ Blockly.Workspace.prototype.deleteVariableById = function(id) {
|
||||
this.variableMap_.deleteVariableById(id);
|
||||
};
|
||||
|
||||
/**
|
||||
* Check whether a variable exists with the given name. The check is
|
||||
* case-insensitive.
|
||||
* @param {string} _name The name to check for.
|
||||
* @return {number} The index of the name in the variable list, or -1 if it is
|
||||
* not present.
|
||||
* @deprecated April 2017
|
||||
*/
|
||||
|
||||
Blockly.Workspace.prototype.variableIndexOf = function(_name) {
|
||||
console.warn(
|
||||
'Deprecated call to Blockly.Workspace.prototype.variableIndexOf');
|
||||
return -1;
|
||||
};
|
||||
|
||||
/**
|
||||
* Find the variable by the given name and return it. Return null if it is not
|
||||
* found.
|
||||
|
||||
@@ -1231,16 +1231,6 @@ Blockly.WorkspaceSvg.prototype.render = function() {
|
||||
this.markerManager_.updateMarkers();
|
||||
};
|
||||
|
||||
/**
|
||||
* Was used back when block highlighting (for execution) and block selection
|
||||
* (for editing) were the same thing.
|
||||
* Any calls of this function can be deleted.
|
||||
* @deprecated October 2016
|
||||
*/
|
||||
Blockly.WorkspaceSvg.prototype.traceOn = function() {
|
||||
console.warn('Deprecated call to traceOn, delete this.');
|
||||
};
|
||||
|
||||
/**
|
||||
* Highlight or unhighlight a block in the workspace. Block highlighting is
|
||||
* often used to visually mark blocks currently being executed.
|
||||
|
||||
Reference in New Issue
Block a user