diff --git a/src/idiomorph.js b/src/idiomorph.js index 2ce60c6..f78733f 100644 --- a/src/idiomorph.js +++ b/src/idiomorph.js @@ -535,26 +535,6 @@ var Idiomorph = (function () { return cursor; } - /** - * @param {Node | null} node - node being removed from consideration - * @param {string} id - The ID of the element to be moved. - * @param {MorphContext} ctx - */ - function removeIdFromMap(node, id, ctx) { - while (node) { - let idSet = ctx.idMap.get(node); - if(idSet) { - idSet?.delete(id); - if (idSet.size == 0) { - ctx.idMap.delete(node) - } else { - ctx.idMap.set(node,idSet); - } - } - node = node.parentNode; - } - } - /** * Search for an element by id within the document and pantry, and move it using moveBefore. *