Remove unused parse_pathbuf_push function

This also remove the `allow(dead_code)`.
This commit is contained in:
Joshua Nelson 2021-05-01 18:49:23 -04:00
parent a88a94e8aa
commit 5cf4499181

View file

@ -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<PathBuf>, v: Option<&str>) -> bool {
match v {
Some(s) => {
slot.push(PathBuf::from(s));
true
}
None => false,
}
}
crate fn parse_list(slot: &mut Vec<String>, v: Option<&str>) -> bool {
match v {
Some(s) => {