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.
This commit is contained in:
parent
a43b0f5253
commit
5c75096bcd
@ -77,12 +77,6 @@ public:
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
~PcmVolume() {
|
||||
assert(format == SampleFormat::UNDEFINED);
|
||||
}
|
||||
#endif
|
||||
|
||||
unsigned GetVolume() const {
|
||||
return volume;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user