diff --git a/src/ol/replay/canvas/canvasreplay.js b/src/ol/replay/canvas/canvasreplay.js index 661042cd98..71628695c1 100644 --- a/src/ol/replay/canvas/canvasreplay.js +++ b/src/ol/replay/canvas/canvasreplay.js @@ -227,27 +227,6 @@ ol.replay.canvas.LineStringBatch = function() { goog.inherits(ol.replay.canvas.LineStringBatch, ol.replay.canvas.Batch); -/** - * @param {Array.} coordinates Coordinates. - * @private - */ -ol.replay.canvas.LineStringBatch.prototype.drawCoordinates_ = - function(coordinates) { - var state = this.state_; - if (!ol.style.stroke.equals(state.currentStrokeStyle, state.strokeStyle)) { - if (state.lastDraw != this.coordinates.length) { - this.instructions.push([ol.replay.canvas.Instruction.STROKE]); - } - this.instructions.push( - [ol.replay.canvas.Instruction.SET_STROKE_STYLE, state.strokeStyle], - [ol.replay.canvas.Instruction.BEGIN_PATH]); - state.currentStrokeStyle = state.strokeStyle; - } - var end = this.appendCoordinates(coordinates, false); - this.instructions.push([ol.replay.canvas.Instruction.MOVE_TO_LINE_TO, end]); -}; - - /** * @param {Array.} flatCoordinates Flat coordinates. * @param {number} offset Offset.