summaryrefslogtreecommitdiff
path: root/src/ReplayGainInfo.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2016-11-24 16:52:31 +0100
committerMax Kellermann <max@musicpd.org>2016-11-24 17:34:57 +0100
commit1261327fa61fbf01adaab639bb012dae58ddab1a (patch)
treecded186fbde9eacef7ee8e931b25115de6995dd2 /src/ReplayGainInfo.cxx
parent09c3cc58e4bd7ce32f3c7368339f8fc537a0dbdf (diff)
ReplayGainInfo: implement fallback in Get()
Eliminates Complete().
Diffstat (limited to 'src/ReplayGainInfo.cxx')
-rw-r--r--src/ReplayGainInfo.cxx7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/ReplayGainInfo.cxx b/src/ReplayGainInfo.cxx
index a87ae551f..3524811a0 100644
--- a/src/ReplayGainInfo.cxx
+++ b/src/ReplayGainInfo.cxx
@@ -41,10 +41,3 @@ ReplayGainTuple::CalculateScale(float preamp, float missing_preamp,
return scale;
}
-
-void
-ReplayGainInfo::Complete()
-{
- if (!tuples[REPLAY_GAIN_ALBUM].IsDefined())
- tuples[REPLAY_GAIN_ALBUM] = tuples[REPLAY_GAIN_TRACK];
-}