src/path_parsing.rs in faster_path-0.3.8 vs src/path_parsing.rs in faster_path-0.3.9
- old
+ new
@@ -10,15 +10,9 @@
pub static ref SEP_STR: &'static str = str::from_utf8(&[SEP]).unwrap();
}
// Returns the byte offset of the last byte that equals MAIN_SEPARATOR.
#[inline(always)]
-pub fn find_last_dot_pos(bytes: &[u8]) -> Option<usize> {
- memrchr(b'.', bytes)
-}
-
-// Returns the byte offset of the last byte that equals MAIN_SEPARATOR.
-#[inline(always)]
pub fn find_last_sep_pos(bytes: &[u8]) -> Option<usize> {
memrchr(SEP, bytes)
}
// Returns the byte offset of the last byte that is not MAIN_SEPARATOR.