mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-31 01:24:35 +02:00
cleanup(generic-snmp): unused function removed
This commit is contained in:
parent
bc64e1e2ae
commit
99c4783b60
@ -93,19 +93,6 @@ impl<'a> Parser<'a> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn join_str_expr(prefix: &str, v: &ExprResult) -> Vec<String> {
|
|
||||||
match v {
|
|
||||||
ExprResult::StrVector(v) => {
|
|
||||||
let mut result = vec![];
|
|
||||||
for item in v {
|
|
||||||
result.push(format!("{}{}", prefix, item));
|
|
||||||
}
|
|
||||||
result
|
|
||||||
}
|
|
||||||
_ => panic!("Expected a string vector"),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
mod Test {
|
mod Test {
|
||||||
use super::*;
|
use super::*;
|
||||||
use log::info;
|
use log::info;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user