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() {