screenreader: Don't enable/disable unit; it can't be installed anyway

This commit is contained in:
Vicki Pfau 2025-06-18 18:56:48 -07:00
parent a3ab918546
commit f62aa583e1
2 changed files with 3 additions and 12 deletions

View file

@ -128,6 +128,7 @@ impl<'dbus> SystemdUnit<'dbus> {
Ok(())
}
#[allow(unused)]
pub async fn enable(&self) -> Result<bool> {
let manager = SystemdManagerProxy::new(&self.connection).await?;
let (_, res) = manager
@ -136,6 +137,7 @@ impl<'dbus> SystemdUnit<'dbus> {
Ok(!res.is_empty())
}
#[allow(unused)]
pub async fn disable(&self) -> Result<bool> {
let manager = SystemdManagerProxy::new(&self.connection).await?;
let res = manager