Remove TODO and get rid of unnecessary wrapper call.

This commit is contained in:
Rachel Fenichel
2017-12-21 10:54:54 -08:00
parent e4e389bd60
commit 24cf1cf7dd

View File

@@ -153,9 +153,7 @@ Blockly.PHP.init = function(workspace) {
var defvars = [];
var varName;
// TODO (fenichel): Why does this use Variables.allVariables when the rest use
// workspace.getAllVariables()?
var variables = Blockly.Variables.allVariables(workspace);
var variables = workspace.getAllVariables();
for (var i = 0, variable; variable = variables[i]; i++) {
varName = variable.name;
defvars[i] = Blockly.PHP.variableDB_.getName(varName,