diff --git a/src/ol/replay/canvas/canvasreplay.js b/src/ol/replay/canvas/canvasreplay.js index c71d6dddc1..2e500daf38 100644 --- a/src/ol/replay/canvas/canvasreplay.js +++ b/src/ol/replay/canvas/canvasreplay.js @@ -371,31 +371,6 @@ ol.replay.canvas.PolygonBatch.prototype.drawFlatCoordinatess_ = }; -/** - * @param {Array.>} 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 */