about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2018-04-19 23:50:17 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2018-04-21 22:02:54 +0200
commitd0e2d26ceb0055dbc0782c611d36f3efdf241b04 (patch)
tree565f21a3a4d7bd985ec9fc59dbe61d621f2e243d
parentd5eade2b941e349be598286b6ca6954d18ac4323 (diff)
downloadrust-d0e2d26ceb0055dbc0782c611d36f3efdf241b04.tar.gz
rust-d0e2d26ceb0055dbc0782c611d36f3efdf241b04.zip
remove unused condition
-rw-r--r--src/librustdoc/html/static/main.js5
1 files changed, 0 insertions, 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,