Skip to content

Commit

Permalink
Remove obsolete C++ backend parts for "current song" text.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mazhoon authored and R1tschY committed Apr 8, 2024
1 parent 7b5fecf commit f54e49e
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions app/src/models/mprisplayersmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ QVariant MprisPlayersModel::data(const QModelIndex &index, int role) const
return m_players[index.row()];
case IsPlayingRole:
return player->isPlaying();
case CurrentSongRole:
return player->currentSong();
case TitleRole:
return player->title();
case ArtistRole:
Expand Down Expand Up @@ -95,7 +93,6 @@ QHash<int, QByteArray> MprisPlayersModel::roleNames() const
roles[Player] = "player";
roles[PlayerNameRole] = "playerName";
roles[IsPlayingRole] = "isPlaying";
roles[CurrentSongRole] = "song";
roles[TitleRole] = "title";
roles[ArtistRole] = "artist";
roles[AlbumRole] = "album";
Expand Down
1 change: 0 additions & 1 deletion app/src/models/mprisplayersmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ class MprisPlayersModel : public QAbstractListModel
Player = Qt::UserRole,
PlayerNameRole,
IsPlayingRole,
CurrentSongRole,
TitleRole,
ArtistRole,
AlbumRole,
Expand Down
2 changes: 0 additions & 2 deletions plugins/sf_mprisremote/mprisremoteplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ void MprisPlayer::setPosition(int value)

void MprisPlayer::receivePacket(const NetworkPacket &np, AlbumArtCache *cache)
{
m_currentSong =
np.get<QString>(QStringLiteral("nowPlaying"), m_currentSong);
m_title =
np.get<QString>(QStringLiteral("title"), m_title);
m_artist =
Expand Down
3 changes: 0 additions & 3 deletions plugins/sf_mprisremote/mprisremoteplugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ class MprisPlayer : public QObject
Q_CLASSINFO("D-Bus Interface", "de.richardliebscher.sailfishconnect.mprisremote.player")
Q_PROPERTY(QString name READ name CONSTANT)
Q_PROPERTY(bool isPlaying READ isPlaying NOTIFY propertiesChanged)
Q_PROPERTY(QString currentSong READ currentSong NOTIFY propertiesChanged)
Q_PROPERTY(QString title READ title NOTIFY propertiesChanged)
Q_PROPERTY(QString artist READ artist NOTIFY propertiesChanged)
Q_PROPERTY(QString album READ album NOTIFY propertiesChanged)
Expand All @@ -56,7 +55,6 @@ class MprisPlayer : public QObject

QString name() const { return m_player; }
bool isPlaying() const { return m_isPlaying; }
QString currentSong() const { return m_currentSong; }
QString title() const { return m_title; }
QString artist() const { return m_artist; }
QString album() const { return m_album; }
Expand Down Expand Up @@ -105,7 +103,6 @@ public slots:
qint64 m_length = -1;
qint64 m_lastPosition = -1;
qint64 m_lastPositionTime = -1;
QString m_currentSong;
QString m_title;
QString m_artist;
QString m_album;
Expand Down

0 comments on commit f54e49e

Please sign in to comment.