From 411e690e65bf4d90c9327af126bd17cb0ca93fe2 Mon Sep 17 00:00:00 2001 From: Erica Z Date: Tue, 19 Nov 2024 21:57:55 +0100 Subject: [PATCH] remove useless comments --- src/mpris/player.rs | 80 --------------------------------------------- 1 file changed, 80 deletions(-) diff --git a/src/mpris/player.rs b/src/mpris/player.rs index 9215894..67e3484 100644 --- a/src/mpris/player.rs +++ b/src/mpris/player.rs @@ -140,86 +140,6 @@ impl Player { object_server .interface::<_, Self>("/org/mpris/MediaPlayer2") .await - - /* - playbin.connect_new_track(glib::clone!( - #[strong] - player_ref, - move |_, song| { - let metadata = MetadataMap::from_playbin_song(Some(song)); - - let player_ref = player_ref.clone(); - glib::spawn_future_local(async move { - let mut player = player_ref.get_mut().await; - player.metadata = metadata; - player - .metadata_changed(player_ref.signal_emitter()) - .await - .unwrap(); - }); - } - )); - - playbin.connect_seeked(glib::clone!( - #[strong] - player_ref, - move |_, position| { - let player_ref = player_ref.clone(); - glib::spawn_future_local(async move { - player_ref - .seeked((position * MICROSECONDS) as i64) - .await - .unwrap(); - }); - } - )); - - playbin.connect_notify_future_local( - "play-queue-length", - glib::clone!( - #[strong] - player_ref, - move |_, _| { - let player_ref = player_ref.clone(); - async move { - let player = player_ref.get_mut().await; - // properties that depend on the play queue length - player - .can_go_next_changed(player_ref.signal_emitter()) - .await - .unwrap(); - player - .can_go_previous_changed(player_ref.signal_emitter()) - .await - .unwrap(); - player - .can_play_changed(player_ref.signal_emitter()) - .await - .unwrap(); - } - } - ), - ); - - playbin.connect_notify_future_local( - "state", - glib::clone!( - #[strong] - player_ref, - move |_, _| { - let player_ref = player_ref.clone(); - async move { - let player = player_ref.get_mut().await; - // properties that depend on the playbin state - player - .playback_status_changed(player_ref.signal_emitter()) - .await - .unwrap(); - } - } - ), - ); - */ } pub async fn on_playlist_count_changed(