Skip to content

Commit 1275c11

Browse files
author
Julian Orth
committed
fix rustdoc performance problems
Fixes #22325
1 parent dccdde4 commit 1275c11

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/librustdoc/html/static/main.js

-17
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,6 @@
3333
return window.history && typeof window.history.pushState === "function";
3434
}
3535

36-
function resizeShortBlocks() {
37-
if (resizeTimeout) {
38-
clearTimeout(resizeTimeout);
39-
}
40-
resizeTimeout = setTimeout(function() {
41-
var contentWidth = $('.content').width();
42-
$('.docblock.short').width(function() {
43-
return contentWidth - 40 - $(this).prev().width();
44-
}).addClass('nowrap');
45-
$('.summary-column').width(function() {
46-
return contentWidth - 40 - $(this).prev().width();
47-
})
48-
}, 150);
49-
}
50-
resizeShortBlocks();
51-
$(window).on('resize', resizeShortBlocks);
52-
5336
function highlightSourceLines(ev) {
5437
var i, from, to, match = window.location.hash.match(/^#?(\d+)(?:-(\d+))?$/);
5538
if (match) {

0 commit comments

Comments
 (0)