# HG changeset patch # User Chris Cannam # Date 1409741080 -3600 # Node ID 856dbe997dcdefa109bc8243e5525803b5a1b12a # Parent 312b92ffb04e258b3329a1d3c5d7eacc10534141 Remove redundant code (from coverity scan) diff -r 312b92ffb04e -r 856dbe997dcd layer/SpectrogramLayer.cpp --- a/layer/SpectrogramLayer.cpp Wed Sep 03 11:42:39 2014 +0100 +++ b/layer/SpectrogramLayer.cpp Wed Sep 03 11:44:40 2014 +0100 @@ -2479,7 +2479,7 @@ FFTModel::PeakSet peakfreqs; - int px = -1, psx = -1; + int psx = -1; #ifdef __GNUC__ float values[maxbin - minbin + 1]; @@ -2500,7 +2500,6 @@ for (int sx = sx0; sx < sx1; ++sx) { - if (x == px && sx == psx) continue; if (sx < 0 || sx >= int(fft->getWidth())) continue; if (!m_synchronous) {