Remove unused ol.extent.touches function

This commit is contained in:
Frederic Junod
2016-10-21 14:23:31 +02:00
parent 2a1a9ec337
commit 0f8d26d829
2 changed files with 0 additions and 30 deletions

View File

@@ -808,19 +808,6 @@ ol.extent.intersectsSegment = function(extent, start, end) {
};
/**
* @param {ol.Extent} extent1 Extent 1.
* @param {ol.Extent} extent2 Extent 2.
* @return {boolean} Touches.
*/
ol.extent.touches = function(extent1, extent2) {
var intersects = ol.extent.intersects(extent1, extent2);
return intersects &&
(extent1[0] == extent2[2] || extent1[2] == extent2[0] ||
extent1[1] == extent2[3] || extent1[3] == extent2[1]);
};
/**
* Apply a transform function to the extent.
* @param {ol.Extent} extent Extent.