Fix minor code issues

This commit is contained in:
Jonas Kvinge
2020-09-30 01:02:41 +02:00
parent d94ee8863c
commit 09cdba4b3d
5 changed files with 5 additions and 16 deletions

View File

@@ -52,10 +52,6 @@ SubsonicScrobbler::SubsonicScrobbler(Application *app, QObject *parent) : Scrobb
}
SubsonicScrobbler::~SubsonicScrobbler() {
}
void SubsonicScrobbler::ReloadSettings() {
QSettings s;
@@ -106,13 +102,9 @@ void SubsonicScrobbler::Scrobble(const Song &song) {
}
void SubsonicScrobbler::DoSubmit() {
}
void SubsonicScrobbler::Submit() {
qLog(Debug) << "SubsonicScrobbler: Submitting scrobble for " << song_playing_.song_id();
qLog(Debug) << "SubsonicScrobbler: Submitting scrobble for" << song_playing_.artist() << song_playing_.title();
submitted_ = false;
if (app_->scrobbler()->IsOffline()) return;

View File

@@ -40,7 +40,6 @@ class SubsonicScrobbler : public ScrobblerService {
public:
explicit SubsonicScrobbler(Application *app, QObject *parent = nullptr);
~SubsonicScrobbler() override;
static const char *kName;
@@ -54,7 +53,7 @@ class SubsonicScrobbler : public ScrobblerService {
void Scrobble(const Song &song) override;
void Error(const QString &error, const QVariant &debug = QVariant()) override;
void DoSubmit() override;
void DoSubmit() override {}
void Submitted() override { submitted_ = true; }
bool IsSubmitted() const override { return submitted_; }