Skip to content

Commit

Permalink
Rollup merge of #66428 - dns2utf8:cleanup_unused_function, r=Guillaum…
Browse files Browse the repository at this point in the history
…eGomez

Cleanup unused function

The argument was not used.

r? @GuillaumeGomez
  • Loading branch information
JohnTitor authored Nov 15, 2019
2 parents 26eb909 + cee0403 commit a173353
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/librustdoc/html/static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1081,14 +1081,13 @@ function getSearchElement() {
val = paths[paths.length - 1];
var contains = paths.slice(0, paths.length > 1 ? paths.length - 1 : 1);

var lev;
var lev_distance;
for (j = 0; j < nSearchWords; ++j) {
var lev;
var lev_distance;
ty = searchIndex[j];
if (!ty || (filterCrates !== undefined && ty.crate !== filterCrates)) {
continue;
}
var lev_distance;
var lev_add = 0;
if (paths.length > 1) {
lev = checkPath(contains, paths[paths.length - 1], ty);
Expand Down Expand Up @@ -1633,7 +1632,7 @@ function getSearchElement() {
}

var filterCrates = getFilterCrates();
showResults(execSearch(query, index, filterCrates), filterCrates);
showResults(execSearch(query, index, filterCrates));
}

function buildIndex(rawSearchIndex) {
Expand Down

0 comments on commit a173353

Please sign in to comment.