Remove has_redox_scheme
Redox OS is moving away from name:/path style paths to /scheme/name/path style paths which are already handled correctly without has_redox_scheme.
This commit is contained in:
@@ -294,11 +294,6 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
// Detect scheme on Redox
|
||||
pub(crate) fn has_redox_scheme(s: &[u8]) -> bool {
|
||||
cfg!(target_os = "redox") && s.contains(&b':')
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Cross-platform, iterator-independent parsing
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
@@ -2834,8 +2829,7 @@ impl Path {
|
||||
Components {
|
||||
path: self.as_u8_slice(),
|
||||
prefix,
|
||||
has_physical_root: has_physical_root(self.as_u8_slice(), prefix)
|
||||
|| has_redox_scheme(self.as_u8_slice()),
|
||||
has_physical_root: has_physical_root(self.as_u8_slice(), prefix),
|
||||
front: State::Prefix,
|
||||
back: State::Body,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user