Remove unused code and fix compiler warnings
Some checks failed
Build and Release / build-and-release (push) Failing after 1m22s

This commit is contained in:
2025-12-06 14:43:29 +01:00
parent b535d0e9cb
commit 7b20b121d9
3 changed files with 0 additions and 45 deletions

View File

@@ -130,11 +130,6 @@ impl Player {
Ok(())
}
pub fn stop(&mut self) -> Result<()> {
self.send_command("stop", &[])?;
self.is_idle = true;
Ok(())
}
pub fn set_volume(&mut self, volume: i64) -> Result<()> {
self.send_command("set_property", &[json!("volume"), json!(volume)])?;
@@ -179,10 +174,6 @@ impl Player {
Some(self.duration)
}
pub fn is_playing(&self) -> bool {
!self.is_paused && !self.is_idle
}
pub fn is_idle(&self) -> bool {
self.is_idle
}