@@ -327,11 +327,6 @@ unsafe fn u8_slice_as_os_str(s: &[u8]) -> &OsStr {
327
327
& * ( s as * const [ u8 ] as * const OsStr )
328
328
}
329
329
330
- // Detect scheme on Redox
331
- fn has_redox_scheme ( s : & [ u8 ] ) -> bool {
332
- cfg ! ( target_os = "redox" ) && s. split ( |b| * b == b'/' ) . next ( ) . unwrap_or ( b"" ) . contains ( & b':' )
333
- }
334
-
335
330
////////////////////////////////////////////////////////////////////////////////
336
331
// Cross-platform, iterator-independent parsing
337
332
////////////////////////////////////////////////////////////////////////////////
@@ -1798,12 +1793,7 @@ impl Path {
1798
1793
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1799
1794
#[ allow( deprecated) ]
1800
1795
pub fn is_absolute ( & self ) -> bool {
1801
- if cfg ! ( target_os = "redox" ) {
1802
- // FIXME: Allow Redox prefixes
1803
- self . has_root ( ) || has_redox_scheme ( self . as_u8_slice ( ) )
1804
- } else {
1805
- self . has_root ( ) && ( cfg ! ( unix) || self . prefix ( ) . is_some ( ) )
1806
- }
1796
+ self . has_root ( ) && ( cfg ! ( unix) || self . prefix ( ) . is_some ( ) )
1807
1797
}
1808
1798
1809
1799
/// Returns `true` if the `Path` is relative, i.e. not absolute.
@@ -2206,8 +2196,7 @@ impl Path {
2206
2196
Components {
2207
2197
path : self . as_u8_slice ( ) ,
2208
2198
prefix,
2209
- has_physical_root : has_physical_root ( self . as_u8_slice ( ) , prefix) ||
2210
- has_redox_scheme ( self . as_u8_slice ( ) ) ,
2199
+ has_physical_root : has_physical_root ( self . as_u8_slice ( ) , prefix) ,
2211
2200
front : State :: Prefix ,
2212
2201
back : State :: Body ,
2213
2202
}
0 commit comments