about summary refs log tree commit diff
path: root/library/std/src/path.rs
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-03-13 20:09:07 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-03-13 20:09:07 +0000
commit43499bfe2ea2b37f98d2bbfcdda05930b20c5591 (patch)
tree7f6929bf4ffbc9661227aad3c537966734bed233 /library/std/src/path.rs
parent83ee034d037d2386085ce44bddad286c24e4ed6c (diff)
downloadrust-43499bfe2ea2b37f98d2bbfcdda05930b20c5591.tar.gz
rust-43499bfe2ea2b37f98d2bbfcdda05930b20c5591.zip
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.
Diffstat (limited to 'library/std/src/path.rs')
-rw-r--r--library/std/src/path.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/library/std/src/path.rs b/library/std/src/path.rs
index f9f3b488f0d..980213be7ea 100644
--- a/library/std/src/path.rs
+++ b/library/std/src/path.rs
@@ -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,
         }