Remove unneeded check in Arduino generator as per...

Remove unneeded check in Arduino generator as per carlospamg/ardublockly@c400ca83-b69d-9dd7-9705-49c6b8615e23
parent c1fedcff
...@@ -111,7 +111,6 @@ Blockly.Arduino.init = function() { ...@@ -111,7 +111,6 @@ Blockly.Arduino.init = function() {
// Create a dictionary of pins to check if their use conflict // Create a dictionary of pins to check if their use conflict
Blockly.Arduino.pins_ = Object.create(null); Blockly.Arduino.pins_ = Object.create(null);
if (Blockly.Variables) {
if (!Blockly.Arduino.variableDB_) { if (!Blockly.Arduino.variableDB_) {
Blockly.Arduino.variableDB_ = new Blockly.Names(Blockly.Arduino.RESERVED_WORDS_); Blockly.Arduino.variableDB_ = new Blockly.Names(Blockly.Arduino.RESERVED_WORDS_);
} else { } else {
...@@ -149,7 +148,7 @@ Blockly.Arduino.init = function() { ...@@ -149,7 +148,7 @@ Blockly.Arduino.init = function() {
variableDeclarations.push(variableWithType[name] + ' ' + name + ';'); variableDeclarations.push(variableWithType[name] + ' ' + name + ';');
} }
Blockly.Arduino.definitions_['variables'] = variableDeclarations.join('\n') + '\n'; Blockly.Arduino.definitions_['variables'] = variableDeclarations.join('\n') + '\n';
}
}; };
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment