From 777baef561e865f26482db69758ec3cf0652f6c0 Mon Sep 17 00:00:00 2001 From: Andrea Ciliberti Date: Wed, 21 Sep 2022 10:26:30 +0200 Subject: [PATCH] Remove SRV module --- ctru-rs/src/lib.rs | 1 - ctru-rs/src/srv.rs | 20 -------------------- 2 files changed, 21 deletions(-) delete mode 100644 ctru-rs/src/srv.rs diff --git a/ctru-rs/src/lib.rs b/ctru-rs/src/lib.rs index 1f203a6..70085e9 100644 --- a/ctru-rs/src/lib.rs +++ b/ctru-rs/src/lib.rs @@ -77,7 +77,6 @@ pub mod error; pub mod gfx; pub mod prelude; pub mod services; -pub mod srv; cfg_if::cfg_if! { if #[cfg(all(feature = "romfs", romfs_exists))] { diff --git a/ctru-rs/src/srv.rs b/ctru-rs/src/srv.rs deleted file mode 100644 index 7d2ad21..0000000 --- a/ctru-rs/src/srv.rs +++ /dev/null @@ -1,20 +0,0 @@ -pub struct Srv(()); - -impl Srv { - pub fn init() -> crate::Result { - unsafe { - let r = ctru_sys::srvInit(); - if r < 0 { - Err(r.into()) - } else { - Ok(Srv(())) - } - } - } -} - -impl Drop for Srv { - fn drop(&mut self) { - unsafe { ctru_sys::srvExit() }; - } -}