From 5c75096bcd21f2780e469e06bc4fc7bddf75684c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 1 Jul 2016 20:59:36 +0200 Subject: [PATCH] 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. --- src/pcm/Volume.hxx | 6 ------ 1 file changed, 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; }