commit 489d082575c2dbe6986d80beed69183981313f83 parent f40aeeb9e6470e2108a9f754587793a1e497f9c3 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); - } }