Skip to content

Commit 0a1f14a

Browse files
Clean up eslint annotations and remove unused JS function
1 parent 7c4a9a9 commit 0a1f14a

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

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;

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)