From 5ed42379e3291ee0f119f814114e978444e2cbc7 Mon Sep 17 00:00:00 2001 From: Philipp Hansch Date: Thu, 23 May 2019 08:01:38 +0200 Subject: [PATCH] librustc_errors: Remove unused annotation style `OldSchoolNoteText` 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 | 2 +- src/librustc_errors/snippet.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/librustc_errors/emitter.rs b/src/librustc_errors/emitter.rs index 59cbd65f05c68..ca86eb69c2dcc 100644 --- a/src/librustc_errors/emitter.rs +++ b/src/librustc_errors/emitter.rs @@ -1645,7 +1645,7 @@ impl<'a> WritableDst<'a> { } } Style::Quotation => {} - Style::OldSchoolNoteText | Style::MainHeaderMsg => { + Style::MainHeaderMsg => { spec.set_bold(true); if cfg!(windows) { spec.set_intense(true) diff --git a/src/librustc_errors/snippet.rs b/src/librustc_errors/snippet.rs index a0af604026d4a..47ba22d3d25af 100644 --- a/src/librustc_errors/snippet.rs +++ b/src/librustc_errors/snippet.rs @@ -188,7 +188,6 @@ pub enum Style { UnderlineSecondary, LabelPrimary, LabelSecondary, - OldSchoolNoteText, NoStyle, Level(Level), Highlight,