From 945b27fea06f24736178451902452734657a34db Mon Sep 17 00:00:00 2001 From: "v.audacity" Date: Thu, 17 Oct 2013 23:18:04 +0000 Subject: [PATCH] Remove unnecessary wxASSERT because the condition is checked for, in Release build as well. --- src/WaveTrack.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/WaveTrack.cpp b/src/WaveTrack.cpp index a73bbfd2d..a8863c76f 100644 --- a/src/WaveTrack.cpp +++ b/src/WaveTrack.cpp @@ -2273,8 +2273,7 @@ bool WaveTrack::MergeClips(int clipidx1, int clipidx2) WaveClip* clip1 = GetClipByIndex(clipidx1); WaveClip* clip2 = GetClipByIndex(clipidx2); - wxASSERT(clip2); - if(clip2 == NULL) // could happen if one track of a linked pair had a split and the other didn't + if (!clip2) // Could happen if one track of a linked pair had a split and the other didn't. return false; // Append data from second clip to first clip