Skip to content

Commit

Permalink
Rollup merge of rust-lang#107331 - GuillaumeGomez:cleanup-js, r=notri…
Browse files Browse the repository at this point in the history
…ddle

Clean up eslint annotations and remove unused JS function

Thanks to rust-lang#107177 I realized that some eslint annotations might be unneeded so I cleaned them up. I also removed the unused function while we wait for rust-lang#107177 to be updated.

r? ``@notriddle``
  • Loading branch information
GuillaumeGomez authored Jan 31, 2023
2 parents b9b5676 + 0a1f14a commit 4755c7c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/librustdoc/html/static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ function browserSupportsHistoryApi() {
return window.history && typeof window.history.pushState === "function";
}

// eslint-disable-next-line no-unused-vars
function loadCss(cssUrl) {
const link = document.createElement("link");
link.href = cssUrl;
Expand Down
1 change: 0 additions & 1 deletion src/librustdoc/html/static/js/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ function hasClass(elem, className) {
return elem && elem.classList && elem.classList.contains(className);
}

// eslint-disable-next-line no-unused-vars
function addClass(elem, className) {
if (!elem || !elem.classList) {
return;
Expand Down

0 comments on commit 4755c7c

Please sign in to comment.