Skip to content

Commit

Permalink
librustc_errors: Remove unused annotation style OldSchoolNoteText
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
phansch committed May 23, 2019
1 parent 15ccaf7 commit 5ed4237
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/librustc_errors/emitter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion src/librustc_errors/snippet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ pub enum Style {
UnderlineSecondary,
LabelPrimary,
LabelSecondary,
OldSchoolNoteText,
NoStyle,
Level(Level),
Highlight,
Expand Down

0 comments on commit 5ed4237

Please sign in to comment.