Remove unused _separateElements()
This commit is contained in:
parent
f40aeeb9e6
commit
489d082575
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user