Skip to content

Commit

Permalink
Rollup merge of #101010 - notriddle:notriddle/multi-column, r=jsha
Browse files Browse the repository at this point in the history
rustdoc: remove unused CSS for `.multi-column`

As a sanity check, [this tool] can be used to run a CSS query across an HTML tree to detect if a selector ever matches (I use compiler-docs and std docs). This isn't good enough, because I also need to account for JavaScript, but this class is never mentioned in any of the JS files, either.

According to [blame], this class was added when rustdoc was first written, and, as far as I can tell, was never actually used.

[this tool]: https://gitlab.com/notriddle/html-scanner
[blame]: https://github.com/rust-lang/rust/blame/4d45b0745ab227feb9000bc15713ade4b99241ea/src/librustdoc/html/static/css/rustdoc.css#L753-L761
  • Loading branch information
JohnTitor authored Aug 26, 2022
2 parents d4a5ec1 + 45cc8cb commit b4d5f48
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -750,16 +750,6 @@ pre, .rustdoc.source .example-wrap {
padding: 0;
}

.content .multi-column {
-moz-column-count: 5;
-moz-column-gap: 2.5em;
-webkit-column-count: 5;
-webkit-column-gap: 2.5em;
column-count: 5;
column-gap: 2.5em;
}
.content .multi-column li { width: 100%; display: inline-block; }

.content > .methods > .method {
font-size: 1rem;
position: relative;
Expand Down

0 comments on commit b4d5f48

Please sign in to comment.