From: Andre Noll Date: Wed, 4 Sep 2013 19:24:15 +0000 (+0000) Subject: mood: Don't open-code compute_dynamic_score(). X-Git-Tag: v0.5.1~6^2~2 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=62a9685d5c7710baad1b6d91c42d1532cdc745ed;p=paraslash.git mood: Don't open-code compute_dynamic_score(). compute_dynamic_score() adds the two values for the numplayed and the lasteplayed score. No need to duplicate this code here. --- diff --git a/mood.c b/mood.c index 465a48e4..db5d8afc 100644 --- a/mood.c +++ b/mood.c @@ -755,8 +755,7 @@ static int mood_update_audio_file(const struct osl_row *aft_row, if (ret < 0) return ret; } - score += compute_num_played_score(&afsi); - score += compute_last_played_score(&afsi); + score += compute_dynamic_score(&afsi); score /= 3; PARA_DEBUG_LOG("score: %li\n", score); percent = (score + 100) / 3;