]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/os/windows/io/handle.rs
Revert "Auto merge of #96441 - ChrisDenton:sync-pipes, r=m-ou-se"
[rust.git] / library / std / src / os / windows / io / handle.rs
index 0ecac6b447570503f17951036dc032077824f97d..90a5b7466fec49956a327fb089ac2656c413489c 100644 (file)
@@ -204,19 +204,6 @@ pub(crate) fn duplicate(
         })?;
         unsafe { Ok(Self::from_raw_handle(ret)) }
     }
-
-    /// Allow child processes to inherit the handle.
-    #[cfg(not(target_vendor = "uwp"))]
-    pub(crate) fn set_inheritable(&self) -> io::Result<()> {
-        cvt(unsafe {
-            c::SetHandleInformation(
-                self.as_raw_handle(),
-                c::HANDLE_FLAG_INHERIT,
-                c::HANDLE_FLAG_INHERIT,
-            )
-        })?;
-        Ok(())
-    }
 }
 
 impl TryFrom<HandleOrInvalid> for OwnedHandle {