From 71492cecb6b81e090426beacfb2a1580986dfe98 Mon Sep 17 00:00:00 2001 From: Shafkath Shuhan Date: Fri, 10 Feb 2023 00:20:52 -0500 Subject: [PATCH] wip --- helix-core/src/path.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/helix-core/src/path.rs b/helix-core/src/path.rs index 5486bf2c53c54..1cbfdcaa11218 100644 --- a/helix-core/src/path.rs +++ b/helix-core/src/path.rs @@ -174,14 +174,6 @@ pub fn is_sep_byte(b: u8) -> bool { } pub fn escape_path(path: &Path) -> PathBuf { - // let mut res = Vec::with_capacity(path.as_ref().as_os_str().len()); - // for component in path.as_ref() { - // let mut bytes = vec![b'%']; - // bytes.append(&mut path_as_bytes(component)); - // res.append(&mut bytes); - // } - // path_from_bytes(&res).unwrap() - let s = path.as_os_str().to_os_string(); let mut bytes = os_str_as_bytes(&s); for b in bytes.iter_mut() {