Skip to content

Commit a173353

Browse files
authored
Rollup merge of #66428 - dns2utf8:cleanup_unused_function, r=GuillaumeGomez
Cleanup unused function The argument was not used. r? @GuillaumeGomez
2 parents 26eb909 + cee0403 commit a173353

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/librustdoc/html/static/main.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -1081,14 +1081,13 @@ function getSearchElement() {
10811081
val = paths[paths.length - 1];
10821082
var contains = paths.slice(0, paths.length > 1 ? paths.length - 1 : 1);
10831083

1084+
var lev;
1085+
var lev_distance;
10841086
for (j = 0; j < nSearchWords; ++j) {
1085-
var lev;
1086-
var lev_distance;
10871087
ty = searchIndex[j];
10881088
if (!ty || (filterCrates !== undefined && ty.crate !== filterCrates)) {
10891089
continue;
10901090
}
1091-
var lev_distance;
10921091
var lev_add = 0;
10931092
if (paths.length > 1) {
10941093
lev = checkPath(contains, paths[paths.length - 1], ty);
@@ -1633,7 +1632,7 @@ function getSearchElement() {
16331632
}
16341633

16351634
var filterCrates = getFilterCrates();
1636-
showResults(execSearch(query, index, filterCrates), filterCrates);
1635+
showResults(execSearch(query, index, filterCrates));
16371636
}
16381637

16391638
function buildIndex(rawSearchIndex) {

0 commit comments

Comments
 (0)