remove unused platform method

This commit is contained in:
Ryan Ragona
2025-04-27 15:34:19 -07:00
parent 34e849a89a
commit 798364e86b

View File

@@ -23,10 +23,3 @@ pub fn ignore_sighup() -> nix::Result<()> {
// SAFETY: Installing the built-in `SIG_IGN` handler is always safe.
unsafe { nix_signal(Signal::SIGHUP, SigHandler::SigIgn) }.map(|_| ())
}
#[cfg(not(unix))]
#[allow(clippy::unused_io_amount)]
pub fn ignore_sighup() -> std::io::Result<()> {
// No-op on non-Unix platforms.
Ok(())
}