From 5cf449918178d0f53a7ecc71a993ba320a95fc87 Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Sat, 1 May 2021 18:49:23 -0400 Subject: Remove unused `parse_pathbuf_push` function This also remove the `allow(dead_code)`. --- compiler/rustc_session/src/options.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs index 020c49d0458..6b365d5fcb5 100644 --- a/compiler/rustc_session/src/options.rs +++ b/compiler/rustc_session/src/options.rs @@ -313,7 +313,6 @@ mod desc { pub const parse_opt_string: &str = parse_string; pub const parse_string_push: &str = parse_string; pub const parse_opt_pathbuf: &str = "a path"; - pub const parse_pathbuf_push: &str = parse_opt_pathbuf; pub const parse_list: &str = "a space-separated list of strings"; pub const parse_opt_comma_list: &str = "a comma-separated list of strings"; pub const parse_number: &str = "a number"; @@ -354,7 +353,6 @@ mod desc { "one of supported split-debuginfo modes (`off` or `dsymutil`)"; } -#[allow(dead_code)] mod parse { crate use super::*; use std::str::FromStr; @@ -445,16 +443,6 @@ mod parse { } } - crate fn parse_pathbuf_push(slot: &mut Vec, v: Option<&str>) -> bool { - match v { - Some(s) => { - slot.push(PathBuf::from(s)); - true - } - None => false, - } - } - crate fn parse_list(slot: &mut Vec, v: Option<&str>) -> bool { match v { Some(s) => { -- cgit 1.4.1-3-g733a5