From 843a2e558cd87dfd352f72b08f271b716d83b9c1 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Sat, 9 Nov 2013 19:08:50 +0100 Subject: [PATCH] Remove ol.replay.canvas.PolygonBatch#drawRings_ --- src/ol/replay/canvas/canvasreplay.js | 25 ------------------------- 1 file changed, 25 deletions(-) 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 */