Skip to content

Commit 24e093c

Browse files
Remove old isHidden function
1 parent f66a331 commit 24e093c

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/librustdoc/html/static/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
// Local js definitions:
55
/* global addClass, getCurrentValue, hasClass */
6-
/* global isHidden, onEach, removeClass, updateLocalStorage */
6+
/* global onEach, removeClass, updateLocalStorage */
77

88
if (!String.prototype.startsWith) {
99
String.prototype.startsWith = function(searchString, position) {

src/librustdoc/html/static/storage.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ function removeClass(elem, className) {
2424
elem.classList.remove(className);
2525
}
2626

27-
function isHidden(elem) {
28-
return elem.offsetParent === null;
29-
}
30-
3127
function onEach(arr, func, reversed) {
3228
if (arr && arr.length > 0 && func) {
3329
var length = arr.length;

0 commit comments

Comments
 (0)