From 5b548c96c89a681798dcf3575df0d73c7429acba Mon Sep 17 00:00:00 2001 From: Swapnil Tripathi Date: Sat, 14 Aug 2021 20:53:47 +0530 Subject: [PATCH] Remove redundant slots. --- src/mediasessionclient.cpp | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/src/mediasessionclient.cpp b/src/mediasessionclient.cpp index 7d9cb266..a79cf57b 100644 --- a/src/mediasessionclient.cpp +++ b/src/mediasessionclient.cpp @@ -23,11 +23,11 @@ MediaSessionClient::MediaSessionClient(AudioManager *audioPlayer, QObject *paren // Sets the playback duration metadata. connect(m_audioPlayer, &AudioManager::positionChanged, this, &MediaSessionClient::setPosition); // Sets the playback position metadata. - connect(m_audioPlayer, &AudioManager::playing, this, &MediaSessionClient::setPlaying); + connect(m_audioPlayer, &AudioManager::playing, this, &MediaSessionClient::setSessionPlaybackState); // Sets the playback to playing. - connect(m_audioPlayer, &AudioManager::paused, this, &MediaSessionClient::setPaused); + connect(m_audioPlayer, &AudioManager::paused, this, &MediaSessionClient::setSessionPlaybackState); // Sets the playback to paused. - connect(m_audioPlayer, &AudioManager::stopped, this, &MediaSessionClient::setStopped); + connect(m_audioPlayer, &AudioManager::stopped, this, &MediaSessionClient::setSessionPlaybackState); // Sets the playback to stopped. } @@ -105,24 +105,3 @@ void MediaSessionClient::setPosition() qint64 position = qint64(m_audioPlayer->position()) * 1000; QAndroidJniObject::callStaticMethod("org/kde/kasts/KastsActivity", "setPosition", "(I)V", position); } - -void MediaSessionClient::setPlaying() -{ - /* - * Sets the media session's current playback state to playing. - */ -} - -void MediaSessionClient::setPaused() -{ - /* - * Sets the media session's current playback state to paused. - */ -} - -void MediaSessionClient::setStopped() -{ - /* - * Sets the media session's current playback state to stopped. - */ -}