From b2068f5f446666f1a880879656d0c05ca2928738 Mon Sep 17 00:00:00 2001 From: Eoin Mcloughlin Date: Sat, 1 Oct 2016 21:54:41 +0100 Subject: [PATCH] Remove dead code. Fix some compiler warnings. --- plotview.cpp | 1 - plotview.h | 1 - tunertransform.cpp | 1 - tunertransform.h | 2 +- 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/plotview.cpp b/plotview.cpp index a653d0b..96bcd7e 100644 --- a/plotview.cpp +++ b/plotview.cpp @@ -482,7 +482,6 @@ void PlotView::updateView(bool reCenter) verticalScrollBar()->setMaximum(std::max(0, plotsHeight() - viewport()->height())); // Update cursors - QRect rect = viewport()->rect(); range_t newSelection = { (int)((selectedSamples.minimum - horizontalScrollBar()->value()) / samplesPerLine()), (int)((selectedSamples.maximum - horizontalScrollBar()->value()) / samplesPerLine()) diff --git a/plotview.h b/plotview.h index 139a0b3..322c581 100644 --- a/plotview.h +++ b/plotview.h @@ -67,7 +67,6 @@ private: std::vector> plots; range_t viewRange; range_t selectedSamples; - std::pair selectionFreq; int fftSize = 1024; int zoomLevel = 0; diff --git a/tunertransform.cpp b/tunertransform.cpp index 89156e7..bd12cd3 100644 --- a/tunertransform.cpp +++ b/tunertransform.cpp @@ -28,7 +28,6 @@ TunerTransform::TunerTransform(SampleSource> *src) : SampleB void TunerTransform::work(void *input, void *output, int count, off_t sampleid) { - auto in = static_cast*>(input); auto out = static_cast*>(output); std::unique_ptr[]> temp(new std::complex[count]); diff --git a/tunertransform.h b/tunertransform.h index abc77f6..d1520d6 100644 --- a/tunertransform.h +++ b/tunertransform.h @@ -26,8 +26,8 @@ class TunerTransform : public SampleBuffer, std::complex taps; float bandwidth; + std::vector taps; public: TunerTransform(SampleSource> *src);