From 9b79a37e427d3406a0b5422fb81ec2ce40c74eca Mon Sep 17 00:00:00 2001 From: martynshaw99 Date: Tue, 15 Mar 2011 00:07:06 +0000 Subject: [PATCH] Remove asserts that fire under safe conditions --- src/Envelope.cpp | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/Envelope.cpp b/src/Envelope.cpp index ecc00cee7..bf0ab8abb 100644 --- a/src/Envelope.cpp +++ b/src/Envelope.cpp @@ -1089,27 +1089,6 @@ void Envelope::GetValues(double *buffer, int bufferLen, double t = t0; double tprev, vprev, tnext = 0, vnext, vstep = 0; - // JC: I believe small rounding errors in t0 are OK, - // and that the previous tests (with epsilon==0) - // were too stringent. - -#if defined(__WXDEBUG__) - // in debug builds, do a spot of argument checking - if(t0 > (mTrackLen+mTrackEpsilon)) - { - wxString msg; - msg = wxString::Format(wxT("t0 %.20f mTrackLen %.20f diff %.20f"), t0, mTrackLen, t0-mTrackLen); - wxASSERT_MSG(t0 <= mTrackLen, msg); - } - - if(t0 < (-mTrackEpsilon)) - { - wxString msg; - msg = wxString::Format(wxT("t0 %.20f"), t0); - wxASSERT_MSG(t0 >= 0, msg); - } -#endif - for (int b = 0; b < bufferLen; b++) { // Get easiest cases out the way first...