From 489d082575c2dbe6986d80beed69183981313f83 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 23 Jan 2014 15:50:08 -0500 Subject: [PATCH] Remove unused _separateElements() --- chrome/content/zotero/xpcom/fulltext.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/chrome/content/zotero/xpcom/fulltext.js b/chrome/content/zotero/xpcom/fulltext.js index 38c1781b7..fe582f4c5 100644 --- 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); - } }