From 249885eb9283f9a481d55a566f4790f3f943575b Mon Sep 17 00:00:00 2001 From: Martin Date: Sat, 23 Jan 2016 17:56:57 +0100 Subject: [PATCH] Remove unused parameter from domIndex `domIndex` is only used in one place in the source code, in vdom/patch.js, and it is called with three parameters. --- vdom/dom-index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vdom/dom-index.js b/vdom/dom-index.js index 4dc2bac0..35dc4339 100644 --- a/vdom/dom-index.js +++ b/vdom/dom-index.js @@ -8,12 +8,12 @@ var noChild = {} module.exports = domIndex -function domIndex(rootNode, tree, indices, nodes) { +function domIndex(rootNode, tree, indices) { if (!indices || indices.length === 0) { return {} } else { indices.sort(ascending) - return recurse(rootNode, tree, indices, nodes, 0) + return recurse(rootNode, tree, indices, undefined, 0) } }