mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
Clean up todos.
This commit is contained in:
@@ -288,7 +288,6 @@ Blockly.blockRendering.ConstantProvider.prototype.makeNotch = function() {
|
||||
Blockly.utils.svgPaths.point(dir * outerWidth, -height)
|
||||
]);
|
||||
}
|
||||
// TODO: Find a relationship between width and path
|
||||
var pathLeft = makeMainPath(1);
|
||||
var pathRight = makeMainPath(-1);
|
||||
|
||||
|
||||
@@ -457,7 +457,6 @@ Blockly.blockRendering.RenderInfo.prototype.getInRowSpacing_ = function(prev, ne
|
||||
/**
|
||||
* Figure out where the right edge of the block and right edge of statement inputs
|
||||
* should be placed.
|
||||
* TODO: More cleanup.
|
||||
* @protected
|
||||
*/
|
||||
Blockly.blockRendering.RenderInfo.prototype.computeBounds_ = function() {
|
||||
@@ -476,9 +475,7 @@ Blockly.blockRendering.RenderInfo.prototype.computeBounds_ = function() {
|
||||
Math.max(widestRowWithConnectedBlocks, row.widthWithConnectedBlocks);
|
||||
}
|
||||
|
||||
|
||||
this.statementEdge = widestStatementRowFields;
|
||||
|
||||
this.width = blockWidth;
|
||||
|
||||
for (var i = 0, row; (row = this.rows[i]); i++) {
|
||||
|
||||
@@ -237,7 +237,6 @@ Blockly.geras.Highlighter.prototype.drawInlineInput = function(input) {
|
||||
var startY = yPos + offset;
|
||||
|
||||
if (this.RTL_) {
|
||||
// TODO: Check if this is different when the inline input is populated.
|
||||
var aboveTabHeight = input.connectionOffsetY - offset;
|
||||
var belowTabHeight = input.height -
|
||||
(input.connectionOffsetY + input.connectionHeight) + offset;
|
||||
|
||||
@@ -61,7 +61,8 @@ Blockly.blockRendering.InputConnection = function(constants, input) {
|
||||
this.connectedBlockHeight = 0;
|
||||
}
|
||||
|
||||
// TODO: change references to connectionModel, since that's on Connection.
|
||||
// TODO (#3186): change references to connectionModel, since that's on
|
||||
// Connection.
|
||||
this.connection = input.connection;
|
||||
this.connectionOffsetX = 0;
|
||||
this.connectionOffsetY = 0;
|
||||
|
||||
@@ -166,7 +166,6 @@ Blockly.blockRendering.Row.prototype.measure = function() {
|
||||
|
||||
/**
|
||||
* Get the last input on this row, if it has one.
|
||||
* TODO: Consider moving this to InputRow, if possible.
|
||||
* @return {Blockly.blockRendering.InputConnection} The last input on the row,
|
||||
* or null.
|
||||
* @package
|
||||
|
||||
@@ -241,7 +241,6 @@ Blockly.zelos.ConstantProvider.prototype.makeNotch = function() {
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Find a relationship between width and path
|
||||
var pathLeft = makeMainPath(1);
|
||||
var pathRight = makeMainPath(-1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user