Remove unused opt_span_warn function

This commit is contained in:
Joshua Nelson 2021-03-27 23:00:34 -04:00
parent ebbc949575
commit f25aa5767f

View File

@ -492,12 +492,6 @@ impl Session {
pub fn warn(&self, msg: &str) {
self.diagnostic().warn(msg)
}
pub fn opt_span_warn<S: Into<MultiSpan>>(&self, opt_sp: Option<S>, 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<S: Into<MultiSpan>>(&self, sp: S, msg: &str) {