remove unused diff and diffABS functions from OpenLayers.Pixel
git-svn-id: http://svn.openlayers.org/trunk/openlayers@129 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -44,27 +44,6 @@ OpenLayers.Pixel.prototype = {
|
||||
return new OpenLayers.Pixel(this.x, this.y);
|
||||
},
|
||||
|
||||
/**
|
||||
* @param {OpenLayers.Pixel} px
|
||||
*
|
||||
* @return a Pixel object with the difference between the two pixels
|
||||
* @type OpenLayers.Pixel
|
||||
*/
|
||||
diff:function(px) {
|
||||
return new OpenLayers.Pixel(this.x - px.x, this.y - px.y);
|
||||
},
|
||||
|
||||
/**
|
||||
* @param {OpenLayers.Pixel} px
|
||||
*
|
||||
* @return Pixel object with the absolute difference between the two pixels
|
||||
* @type OpenLayers.Pixel
|
||||
*/
|
||||
diffABS:function(px) {
|
||||
return new OpenLayers.Pixel(Math.abs(this.x - px.x),
|
||||
Math.abs(this.y - px.y));
|
||||
},
|
||||
|
||||
/**
|
||||
* @param {OpenLayers.Pixel} px
|
||||
*
|
||||
@@ -72,8 +51,7 @@ OpenLayers.Pixel.prototype = {
|
||||
* @type bool
|
||||
*/
|
||||
equals:function(px) {
|
||||
var d = this.diff(px);
|
||||
return ((d.x == 0) && (d.y == 0));
|
||||
return ((this.x == px.x) && (this.y == px.y));
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user