From 87a2bc027c4cfd126bc95f864d229d5cb5f7f00c Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Thu, 4 May 2023 12:51:29 +1000 Subject: [PATCH] Remove `Session::span_err_or_warn`. It's unused. --- compiler/rustc_session/src/session.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/compiler/rustc_session/src/session.rs b/compiler/rustc_session/src/session.rs index a988d7f28e6cb..151325fcb08a5 100644 --- a/compiler/rustc_session/src/session.rs +++ b/compiler/rustc_session/src/session.rs @@ -490,20 +490,6 @@ impl Session { } #[rustc_lint_diagnostics] #[track_caller] - pub fn span_err_or_warn>( - &self, - is_warning: bool, - sp: S, - msg: impl Into, - ) { - if is_warning { - self.span_warn(sp, msg); - } else { - self.span_err(sp, msg); - } - } - #[rustc_lint_diagnostics] - #[track_caller] pub fn span_err>( &self, sp: S,