From f25aa5767f0bb1409c7c7b6c202f22d8bf48bbee Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Sat, 27 Mar 2021 23:00:34 -0400 Subject: [PATCH] Remove unused `opt_span_warn` function --- compiler/rustc_session/src/session.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/compiler/rustc_session/src/session.rs b/compiler/rustc_session/src/session.rs index fff4ee7739f46..acb2a1ae7efa9 100644 --- a/compiler/rustc_session/src/session.rs +++ b/compiler/rustc_session/src/session.rs @@ -492,12 +492,6 @@ impl Session { pub fn warn(&self, msg: &str) { self.diagnostic().warn(msg) } - pub fn opt_span_warn>(&self, opt_sp: Option, msg: &str) { - match opt_sp { - Some(sp) => self.span_warn(sp, msg), - None => self.warn(msg), - } - } /// Delay a span_bug() call until abort_if_errors() #[track_caller] pub fn delay_span_bug>(&self, sp: S, msg: &str) {