From a55dcad8be7348bb68801ce6123fd7093e6bbb37 Mon Sep 17 00:00:00 2001 From: "Charles J. Cliffe" Date: Fri, 20 Nov 2015 22:13:09 -0500 Subject: [PATCH] Remove unused demod buffer --- src/demod/DemodulatorThread.cpp | 4 +--- src/demod/DemodulatorThread.h | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/demod/DemodulatorThread.cpp b/src/demod/DemodulatorThread.cpp index 7160ce8..cd6d5d2 100644 --- a/src/demod/DemodulatorThread.cpp +++ b/src/demod/DemodulatorThread.cpp @@ -87,10 +87,8 @@ void DemodulatorThread::run() { if (agcData.size() != bufSize) { if (agcData.capacity() < bufSize) { agcData.reserve(bufSize); - agcAMData.reserve(bufSize); } agcData.resize(bufSize); - agcAMData.resize(bufSize); } agc_crcf_execute_block(iqAutoGain, &(inp->data[0]), bufSize, &agcData[0]); @@ -118,7 +116,7 @@ void DemodulatorThread::run() { AudioThreadInput *ati = NULL; ModemAnalog *modemAnalog = (cModem->getType() == "analog")?((ModemAnalog *)cModem):nullptr; - ModemDigital *modemDigital = (cModem->getType() == "digital")?((ModemDigital *)cModem):nullptr; +// ModemDigital *modemDigital = (cModem->getType() == "digital")?((ModemDigital *)cModem):nullptr; if (modemAnalog != nullptr) { ati = outputBuffers.getBuffer(); diff --git a/src/demod/DemodulatorThread.h b/src/demod/DemodulatorThread.h index 6ada067..4cbc2ef 100644 --- a/src/demod/DemodulatorThread.h +++ b/src/demod/DemodulatorThread.h @@ -38,7 +38,6 @@ protected: ReBuffer outputBuffers; std::vector agcData; - std::vector agcAMData; agc_crcf iqAutoGain;