changeset 848:856dbe997dcd

Remove redundant code (from coverity scan)
author Chris Cannam
date Wed, 03 Sep 2014 11:44:40 +0100
parents 312b92ffb04e
children d7f6f60a8b30
files layer/SpectrogramLayer.cpp
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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) {