From 1275c1102ef2c9b7a52f9487a62e98f99b7a0a34 Mon Sep 17 00:00:00 2001 From: Julian Orth Date: Tue, 24 Feb 2015 15:36:46 +0100 Subject: [PATCH] fix rustdoc performance problems Fixes #22325 --- src/librustdoc/html/static/main.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js index aac3985f0cc9c..4e2e623c771db 100644 --- a/src/librustdoc/html/static/main.js +++ b/src/librustdoc/html/static/main.js @@ -33,23 +33,6 @@ return window.history && typeof window.history.pushState === "function"; } - function resizeShortBlocks() { - if (resizeTimeout) { - clearTimeout(resizeTimeout); - } - resizeTimeout = setTimeout(function() { - var contentWidth = $('.content').width(); - $('.docblock.short').width(function() { - return contentWidth - 40 - $(this).prev().width(); - }).addClass('nowrap'); - $('.summary-column').width(function() { - return contentWidth - 40 - $(this).prev().width(); - }) - }, 150); - } - resizeShortBlocks(); - $(window).on('resize', resizeShortBlocks); - function highlightSourceLines(ev) { var i, from, to, match = window.location.hash.match(/^#?(\d+)(?:-(\d+))?$/); if (match) {