Remove unused lastPixel_ in ol.interaction.Extent

This commit is contained in:
Frederic Junod
2016-09-05 09:12:06 +02:00
parent 6c7f50a38e
commit d863cff28d

View File

@@ -87,13 +87,6 @@ ol.interaction.Extent = function(opt_options) {
*/
this.pixelTolerance_ = 10;
/**
* Last known pixel coordinate of the pointer
* @type {ol.Pixel}
* @private
*/
this.lastPixel_ = null;
/**
* Is the pointer snapped to an extent vertex
* @type {boolean}
@@ -251,7 +244,6 @@ ol.interaction.Extent.handleDownEvent_ = function(mapBrowserEvent) {
* @private
*/
ol.interaction.Extent.handleDragEvent_ = function(mapBrowserEvent) {
this.lastPixel_ = mapBrowserEvent.pixel;
if (this.pointerHandler_) {
var pixelCoordinate = mapBrowserEvent.coordinate;
this.setExtent(this.pointerHandler_(pixelCoordinate));