Skip to content

Commit 4755c7c

Browse files
Rollup merge of #107331 - GuillaumeGomez:cleanup-js, r=notriddle
Clean up eslint annotations and remove unused JS function Thanks to #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 #107177 to be updated. r? ``@notriddle``
2 parents b9b5676 + 0a1f14a commit 4755c7c

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

Diff for: src/librustdoc/html/static/js/main.js

-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ function browserSupportsHistoryApi() {
180180
return window.history && typeof window.history.pushState === "function";
181181
}
182182

183-
// eslint-disable-next-line no-unused-vars
184183
function loadCss(cssUrl) {
185184
const link = document.createElement("link");
186185
link.href = cssUrl;

Diff for: src/librustdoc/html/static/js/storage.js

-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ function hasClass(elem, className) {
5151
return elem && elem.classList && elem.classList.contains(className);
5252
}
5353

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

0 commit comments

Comments
 (0)