Skip to content

Commit 45a6666

Browse files
committed
Remove unused code. Documentation.
1 parent 05d9303 commit 45a6666

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

docs/_static/searchtools.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,6 @@ var Search = {
308308
linkUrl +
309309
highlightstring + item[2]).html(item[1]));
310310

311-
// headline.append($('<span class="title_doc_section">' + item[6] + '</span>'));
312311
listItem.append(headline);
313312

314313
if (item[3]) {
@@ -531,12 +530,11 @@ var Search = {
531530
// for better ranking, we should calculate ranking by using words statistics like basic tf-idf...
532531
var score = $u.max($u.map(fileMap[file], function(w){return scoreMap[file][w]}));
533532

534-
function get1stLevelAncestor(f) {
535-
let parentdocname = docnames[f].split('/')[0] + '/index';
536-
let parentID = docnames.indexOf(parentdocname);
537-
let title = parentID === -1 ? title_documentation : titles[parentID];
538-
return title
539-
}
533+
/**
534+
* Return array with titles of ancestors of file.
535+
* @param {number} idx - The index of the result item in global list of files
536+
* @returns array
537+
*/
540538
function getParentTitles(idx) {
541539
let path = docnames[idx]
542540

0 commit comments

Comments
 (0)