1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

tests: remove unused method

This commit is contained in:
Joseph Crail 2016-03-28 23:25:50 -04:00
parent 7d103a0a64
commit 91df9b14da

View file

@ -124,14 +124,6 @@ pub fn log_info<T: AsRef<str>, U: AsRef<str>>(msg: T, par: U) {
println!("{}: {}", msg.as_ref(), par.as_ref());
}
pub fn repeat_component(s: &str, n: u32) -> String {
let mut path = PathBuf::from("");
for _ in 0..n {
path.push(s);
}
path.to_str().unwrap().to_owned()
}
pub fn recursive_copy(src: &Path, dest: &Path) -> Result<()> {
if try!(fs::metadata(src)).is_dir() {
for entry in try!(fs::read_dir(src)) {