1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-19 09:01:15 +02:00

just some cleanups on FIXMEs and unused method parameters

This commit is contained in:
v.audacity
2013-08-31 05:57:48 +00:00
parent 884dfaa652
commit cc876ce7be
11 changed files with 18 additions and 103 deletions

View File

@@ -225,8 +225,7 @@ WaveTrack* ODWaveTrackTaskQueue::GetWaveTrack(size_t x)
{
WaveTrack* ret = NULL;
mTracksMutex.Lock();
// FIXME: x is unsigned so there's no point in checking that it's >= 0.
if(x>=0&&x<mTracks.size())
if (x < mTracks.size())
ret = mTracks[x];
mTracksMutex.Unlock();
return ret;
@@ -257,8 +256,7 @@ ODTask* ODWaveTrackTaskQueue::GetTask(size_t x)
{
ODTask* ret = NULL;
mTasksMutex.Lock();
// FIXME: x is unsigned so there's no point in checking that it's >= 0.
if(x>=0&&x<mTasks.size())
if (x < mTasks.size())
ret = mTasks[x];
mTasksMutex.Unlock();
return ret;