From aff6c741d466610576b02fde72d139aa8c6ec0a8 Mon Sep 17 00:00:00 2001 From: klensy Date: Mon, 13 Nov 2023 14:43:53 +0300 Subject: remove unused pub fn --- compiler/rustc_span/src/lib.rs | 7 ------- 1 file changed, 7 deletions(-) (limited to 'compiler/rustc_span/src') diff --git a/compiler/rustc_span/src/lib.rs b/compiler/rustc_span/src/lib.rs index 6400ba488bb..76be546e945 100644 --- a/compiler/rustc_span/src/lib.rs +++ b/compiler/rustc_span/src/lib.rs @@ -139,13 +139,6 @@ pub fn set_session_globals_then(session_globals: &SessionGlobals, f: impl FnO SESSION_GLOBALS.set(session_globals, f) } -pub fn create_default_session_if_not_set_then(f: F) -> R -where - F: FnOnce(&SessionGlobals) -> R, -{ - create_session_if_not_set_then(edition::DEFAULT_EDITION, f) -} - pub fn create_session_if_not_set_then(edition: Edition, f: F) -> R where F: FnOnce(&SessionGlobals) -> R, -- cgit 1.4.1-3-g733a5