]> git.lizzy.rs Git - rust.git/commitdiff
librustc_errors: Remove unused annotation style `OldSchoolNoteText`
authorPhilipp Hansch <dev@phansch.net>
Thu, 23 May 2019 06:01:38 +0000 (08:01 +0200)
committerPhilipp Hansch <dev@phansch.net>
Thu, 23 May 2019 06:01:38 +0000 (08:01 +0200)
I could not find any references to it and the `snippet` module does not
seem to be exported publicly, so I think it can be safely removed.

src/librustc_errors/emitter.rs
src/librustc_errors/snippet.rs

index 59cbd65f05c68a4a936192e58d49da99ecd4f09a..ca86eb69c2dcc83c2c9e9ccd4f9cdc4d530e12ba 100644 (file)
@@ -1645,7 +1645,7 @@ fn apply_style(&mut self, lvl: Level, style: Style) -> io::Result<()> {
                 }
             }
             Style::Quotation => {}
-            Style::OldSchoolNoteText | Style::MainHeaderMsg => {
+            Style::MainHeaderMsg => {
                 spec.set_bold(true);
                 if cfg!(windows) {
                     spec.set_intense(true)
index a0af604026d4afa051aaba78b899662693e25894..47ba22d3d25aff6ebff6f6ee702bd1e4955df812 100644 (file)
@@ -188,7 +188,6 @@ pub enum Style {
     UnderlineSecondary,
     LabelPrimary,
     LabelSecondary,
-    OldSchoolNoteText,
     NoStyle,
     Level(Level),
     Highlight,