From d0e2d26ceb0055dbc0782c611d36f3efdf241b04 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Thu, 19 Apr 2018 23:50:17 +0200 Subject: [PATCH] remove unused condition --- src/librustdoc/html/static/main.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js index 27d10bce3a0..962ff14d09a 100644 --- a/src/librustdoc/html/static/main.js +++ b/src/librustdoc/html/static/main.js @@ -1072,11 +1072,6 @@ type = matches[1].replace(/^const$/, 'constant'); query = query.substring(matches[0].length); } - // In case we just get a '!' as input, we can assume that the user is looking for the - // `Never` primitive type. - if (raw === '!') { - query = 'Never'; - } return { raw: raw,