commit 7036d07acca60e2861d4facecb2158b3d47af98d parent c22ddd2ce621e4dc4fe45f7126657544d06853ed Author: Dan Stillman <dstillman@zotero.org> Date: Thu, 23 Jan 2014 15:50:08 -0500 Remove unused _separateElements() Diffstat:
| M | chrome/content/zotero/xpcom/fulltext.js | | | 19 | ------------------- |
1 file changed, 0 insertions(+), 19 deletions(-)
diff --git a/chrome/content/zotero/xpcom/fulltext.js b/chrome/content/zotero/xpcom/fulltext.js @@ -1562,23 +1562,4 @@ Zotero.Fulltext = new function(){ return Object.keys(words); } - - - /* - * Add spaces between elements, since HTMLToText doesn't - * - * NOTE: SLOW AND NOT USED! - */ - function _separateElements(node){ - var next = node; - do { - if (next.hasChildNodes()){ - _separateElements(next.firstChild); - } - - var space = node.ownerDocument.createTextNode(' '); - next.parentNode.insertBefore(space, next); - } - while (next = next.nextSibling); - } }