Remove rtree example

Fixes #2732
This commit is contained in:
Frederic Junod
2014-09-29 13:29:49 +02:00
parent 14e8c098c8
commit ced15e27c1
3 changed files with 0 additions and 179 deletions

View File

@@ -505,29 +505,6 @@ ol.structs.RBush.prototype.forEachInExtent_ =
};
/**
* @param {function(this: S, ol.structs.RBushNode.<T>): *} callback Callback.
* @param {S=} opt_this The object to use as `this` in `callback`.
* @return {*} Callback return value.
* @template S
*/
ol.structs.RBush.prototype.forEachNode = function(callback, opt_this) {
/** @type {Array.<ol.structs.RBushNode.<T>>} */
var toVisit = [this.root_];
while (toVisit.length > 0) {
var node = toVisit.pop();
var result = callback.call(opt_this, node);
if (result) {
return result;
}
if (!node.isLeaf()) {
toVisit.push.apply(toVisit, node.children);
}
}
return undefined;
};
/**
* @return {Array.<T>} All.
*/