Remove ol.replay.canvas.PolygonBatch#drawRings_

This commit is contained in:
Tom Payne
2013-11-09 19:08:50 +01:00
parent 0a02409d64
commit 843a2e558c

View File

@@ -371,31 +371,6 @@ ol.replay.canvas.PolygonBatch.prototype.drawFlatCoordinatess_ =
};
/**
* @param {Array.<Array.<ol.Coordinate>>} rings Rings.
* @private
*/
ol.replay.canvas.PolygonBatch.prototype.drawRings_ = function(rings) {
var state = this.state_;
this.instructions.push([ol.replay.canvas.Instruction.BEGIN_PATH]);
var i, ii;
for (i = 0, ii = rings.length; i < ii; ++i) {
var end = this.appendCoordinates(rings[i], true);
this.instructions.push(
[ol.replay.canvas.Instruction.MOVE_TO_LINE_TO, end],
[ol.replay.canvas.Instruction.CLOSE_PATH]);
}
// FIXME is it quicker to fill and stroke each polygon individually,
// FIXME or all polygons together?
if (!goog.isNull(state.fillStyle)) {
this.instructions.push([ol.replay.canvas.Instruction.FILL]);
}
if (!goog.isNull(state.strokeStyle)) {
this.instructions.push([ol.replay.canvas.Instruction.STROKE]);
}
};
/**
* @inheritDoc
*/