Skip to content

Commit 2868045

Browse files
committed
expand: nix unused method
1 parent 1bfa248 commit 2868045

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/librustc_expand/base.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use rustc_ast::visit::{AssocCtxt, Visitor};
1010
use rustc_attr::{self as attr, Deprecation, HasAttrs, Stability};
1111
use rustc_data_structures::fx::FxHashMap;
1212
use rustc_data_structures::sync::{self, Lrc};
13-
use rustc_errors::{DiagnosticBuilder, DiagnosticId, ErrorReported};
13+
use rustc_errors::{DiagnosticBuilder, ErrorReported};
1414
use rustc_parse::{self, parser, MACRO_ARGUMENTS};
1515
use rustc_session::parse::ParseSess;
1616
use rustc_span::edition::Edition;
@@ -1026,9 +1026,6 @@ impl<'a> ExtCtxt<'a> {
10261026
pub fn span_err<S: Into<MultiSpan>>(&self, sp: S, msg: &str) {
10271027
self.parse_sess.span_diagnostic.span_err(sp, msg);
10281028
}
1029-
pub fn span_err_with_code<S: Into<MultiSpan>>(&self, sp: S, msg: &str, code: DiagnosticId) {
1030-
self.parse_sess.span_diagnostic.span_err_with_code(sp, msg, code);
1031-
}
10321029
pub fn span_warn<S: Into<MultiSpan>>(&self, sp: S, msg: &str) {
10331030
self.parse_sess.span_diagnostic.span_warn(sp, msg);
10341031
}

0 commit comments

Comments
 (0)