diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2019-11-15 18:36:35 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-15 18:36:35 +0900 |
| commit | a173353daa657d90fff06e6223f48ee383bf9d13 (patch) | |
| tree | 77f5ba79a6eda736ab42329b9294a8e4c91fe259 | |
| parent | 26eb9093fdd96365eeb1b88538c9fb7c7ce46013 (diff) | |
| parent | cee0403b5c05a98fe960eba4c36fc61492da8a77 (diff) | |
| download | rust-a173353daa657d90fff06e6223f48ee383bf9d13.tar.gz rust-a173353daa657d90fff06e6223f48ee383bf9d13.zip | |
Rollup merge of #66428 - dns2utf8:cleanup_unused_function, r=GuillaumeGomez
Cleanup unused function The argument was not used. r? @GuillaumeGomez
| -rw-r--r-- | src/librustdoc/html/static/main.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js index 04c0a0f005b..752b93f2ac5 100644 --- a/src/librustdoc/html/static/main.js +++ b/src/librustdoc/html/static/main.js @@ -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); @@ -1633,7 +1632,7 @@ function getSearchElement() { } var filterCrates = getFilterCrates(); - showResults(execSearch(query, index, filterCrates), filterCrates); + showResults(execSearch(query, index, filterCrates)); } function buildIndex(rawSearchIndex) { |
