Remove unused _separateElements()
This commit is contained in:
parent
c22ddd2ce6
commit
7036d07acc
1 changed files with 0 additions and 19 deletions
|
@ -1562,23 +1562,4 @@ Zotero.Fulltext = new function(){
|
||||||
|
|
||||||
return Object.keys(words);
|
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…
Add table
Add a link
Reference in a new issue