diff options
Diffstat (limited to 'src/settings.c')
-rw-r--r-- | src/settings.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/settings.c b/src/settings.c index 1136a3a..4ac2fea 100644 --- a/src/settings.c +++ b/src/settings.c @@ -74,8 +74,6 @@ void BarSettingsDestroy (BarSettings_t *settings) { free (settings->controlProxy); free (settings->username); free (settings->password); - free (settings->lastfmUser); - free (settings->lastfmPassword); free (settings->autostartStation); free (settings->eventCmd); memset (settings, 0, sizeof (*settings)); @@ -136,12 +134,6 @@ void BarSettingsRead (BarSettings_t *settings) { settings->username = strdup (val); } else if (strcmp ("password", key) == 0) { settings->password = strdup (val); - } else if (strcmp ("lastfm_user", key) == 0) { - settings->lastfmUser = strdup (val); - } else if (strcmp ("lastfm_password", key) == 0) { - settings->lastfmPassword = strdup (val); - } else if (strcmp ("lastfm_scrobble_percent", key) == 0) { - settings->lastfmScrobblePercent = atoi (val); } else if (memcmp ("act_", key, 4) == 0) { /* keyboard shortcuts */ for (i = 0; i < BAR_KS_COUNT; i++) { @@ -167,17 +159,5 @@ void BarSettingsRead (BarSettings_t *settings) { } } - /* some checks */ - /* last.fm requests tracks to be played at least 50% */ - if (settings->lastfmScrobblePercent < 50 || - settings->lastfmScrobblePercent > 100) { - settings->lastfmScrobblePercent = 50; - } - - /* only scrobble tracks if username and password are set */ - if (settings->lastfmUser != NULL && settings->lastfmPassword != NULL) { - settings->enableScrobbling = 1; - } - fclose (configfd); } |