mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-09 13:12:17 +01:00
Clean up some dead code and MSVC warnings.
- Dead code from experiments in SelectionBar removed. - Many warnings about unused parameters fixed with WXUNUSED() - Many warnings about signed / unsigned comparisons cleaned up. - Several 'local variable declared but not used' warnings fixed.
This commit is contained in:
@@ -1406,7 +1406,6 @@ void WaveTrack::Silence(double t0, double t1)
|
||||
|
||||
auto start = (sampleCount)floor(t0 * mRate + 0.5);
|
||||
auto len = (sampleCount)floor(t1 * mRate + 0.5) - start;
|
||||
bool result = true;
|
||||
|
||||
for (const auto &clip : mClips)
|
||||
{
|
||||
@@ -2059,7 +2058,7 @@ bool WaveTrack::Get(samplePtr buffer, sampleFormat format,
|
||||
{
|
||||
wxASSERT( format==floatSample );
|
||||
float * pBuffer = (float*)buffer;
|
||||
for(int i=0;i<len;i++)
|
||||
for(size_t i=0;i<len;i++)
|
||||
pBuffer[i]=2.0f;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user