remove unused global showDemod

This commit is contained in:
Philippe Teuwen 2021-08-21 17:42:00 +02:00
commit a8bb07db3a
3 changed files with 1 additions and 3 deletions

View file

@ -711,7 +711,7 @@ void Plot::paintEvent(QPaintEvent *event) {
//Start painting graph
PlotGraph(g_GraphBuffer, GraphTraceLen, plotRect, infoRect, &painter, 0);
if (showDemod && g_DemodBufferLen > 8) {
if (g_DemodBufferLen > 8) {
PlotDemod(g_DemodBuffer, g_DemodBufferLen, plotRect, infoRect, &painter, 2, g_DemodStartIdx);
}
if (g_useOverlays) {

View file

@ -50,7 +50,6 @@ double g_GraphPixelsPerPoint = 1.f; // How many visual pixels are between each s
static bool flushAfterWrite = 0;
double g_GridOffset = 0;
bool g_GridLocked = false;
bool showDemod = true;
pthread_mutex_t g_print_lock = PTHREAD_MUTEX_INITIALIZER;

View file

@ -54,7 +54,6 @@ typedef struct {
} session_arg_t;
extern session_arg_t session;
extern bool showDemod;
#ifndef M_PI
#define M_PI 3.14159265358979323846264338327
#endif