From 79737cdab5aa3162d53b58690fcff7dc36598831 Mon Sep 17 00:00:00 2001 From: Vladimir Agafonkin Date: Thu, 9 Aug 2012 17:02:37 +0300 Subject: [PATCH] remove DistanceGrid#replaceObject (not needed) --- src/DistanceGrid.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/DistanceGrid.js b/src/DistanceGrid.js index d9b1f285a..f1c699e79 100644 --- a/src/DistanceGrid.js +++ b/src/DistanceGrid.js @@ -42,20 +42,6 @@ L.DistanceGrid.prototype = { } }, - replaceObject: function (newObj, oldObj) { - var cell = oldObj._dGridCell, - i, len; - - for (i = 0, len = cell.length; i < len; i++) { - if (cell[i] === oldObj) { - cell.splice(i, 1, newObj); - newObj._dGridCell = oldObj._dGridCell; - newObj._dGridPoint = oldObj._dGridPoint; - break; - } - } - }, - eachObject: function (fn, context) { var i, j, k, len, row, cell, removed, grid = this._grid;