Remove useless variable.

This commit is contained in:
Rachel Fenichel
2019-09-04 15:01:37 -07:00
parent 135ab7993e
commit b4ac23df6c
3 changed files with 6 additions and 9 deletions

View File

@@ -304,11 +304,10 @@ Blockly.geras.RenderInfo.prototype.getElemCenterline_ = function(row, elem) {
return baseline - elem.height / 2;
}
if (Blockly.blockRendering.Types.isTopRow(row)) {
var capline = row.capline;
if (Blockly.blockRendering.Types.isHat(elem)) {
return capline - elem.height / 2;
return row.capline - elem.height / 2;
}
return capline + elem.height / 2;
return row.capline + elem.height / 2;
}
var result = row.yPos;

View File

@@ -305,11 +305,10 @@ Blockly.thrasos.RenderInfo.prototype.getElemCenterline_ = function(row, elem) {
return baseline - elem.height / 2;
}
if (Blockly.blockRendering.Types.isTopRow(row)) {
var capline = row.capline;
if (Blockly.blockRendering.Types.isHat(elem)) {
return capline - elem.height / 2;
return row.capline - elem.height / 2;
}
return capline + elem.height / 2;
return row.capline + elem.height / 2;
}
var result = row.yPos;

View File

@@ -296,11 +296,10 @@ Blockly.zelos.RenderInfo.prototype.getElemCenterline_ = function(row,
return baseline - elem.height / 2;
}
if (Blockly.blockRendering.Types.isTopRow(row)) {
var capline = row.capline;
if (Blockly.blockRendering.Types.isHat(elem)) {
return capline - elem.height / 2;
return row.capline - elem.height / 2;
}
return capline + elem.height / 2;
return row.capline + elem.height / 2;
}
var result = row.yPos;