mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
Rollup merge of #96858 - notriddle:notriddle/cleanup-search-js, r=GuillaumeGomez
Remove unused param from search.js::checkPath
This commit is contained in:
commit
59722228b9
@ -1089,7 +1089,7 @@ window.initSearch = rawSearchIndex => {
|
||||
return parsedQuery.literalSearch ? MAX_LEV_DISTANCE + 1 : lev;
|
||||
}
|
||||
|
||||
function checkPath(contains, lastElem, ty) {
|
||||
function checkPath(contains, ty) {
|
||||
if (contains.length === 0) {
|
||||
return 0;
|
||||
}
|
||||
@ -1306,7 +1306,7 @@ window.initSearch = rawSearchIndex => {
|
||||
}
|
||||
|
||||
if (elem.fullPath.length > 1) {
|
||||
lev = checkPath(elem.pathWithoutLast, elem.pathLast, row);
|
||||
lev = checkPath(elem.pathWithoutLast, row);
|
||||
if (lev > MAX_LEV_DISTANCE || (parsedQuery.literalSearch && lev !== 0)) {
|
||||
return;
|
||||
} else if (lev > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user