summaryrefslogtreecommitdiff
path: root/src/pcm/Volume.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2016-07-01 20:59:36 +0200
committerMax Kellermann <max@duempel.org>2016-07-01 21:04:24 +0200
commit5c75096bcd21f2780e469e06bc4fc7bddf75684c (patch)
tree5ee0824807a818faf5297e31ecab749d4c88ec04 /src/pcm/Volume.hxx
parenta43b0f5253bb035701039de9020242f432f2b662 (diff)
pcm/Volume: remove assert() from destructor
While this assert() was useful when we had to track the object's state manually, there was no practical purpose other than verifying old code, and it complicates our new C++ code.
Diffstat (limited to 'src/pcm/Volume.hxx')
-rw-r--r--src/pcm/Volume.hxx6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/pcm/Volume.hxx b/src/pcm/Volume.hxx
index 5e92fb6fe..1576b33b1 100644
--- a/src/pcm/Volume.hxx
+++ b/src/pcm/Volume.hxx
@@ -77,12 +77,6 @@ public:
#endif
}
-#ifndef NDEBUG
- ~PcmVolume() {
- assert(format == SampleFormat::UNDEFINED);
- }
-#endif
-
unsigned GetVolume() const {
return volume;
}