From 423de2ba44c8acce93d5424007ab2e11c2b7dc1f Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 6 Nov 2017 15:08:36 +0100 Subject: [PATCH] CHG: removed unused function --- client/graph.c | 25 ------------------------- client/graph.h | 1 - 2 files changed, 26 deletions(-) diff --git a/client/graph.c b/client/graph.c index f71b89ab1..f91fb5417 100644 --- a/client/graph.c +++ b/client/graph.c @@ -93,31 +93,6 @@ bool HasGraphData(){ return true; } -// Detect high and lows in Grapbuffer. -// Only loops the first 256 values. -// Optional: 12% fuzz in case highs and lows aren't clipped -void DetectHighLowInGraph(int *high, int *low, bool addFuzz) { - - uint8_t loopMax = 255; - if ( loopMax > GraphTraceLen) - loopMax = GraphTraceLen; - - *high = -255; *low = 255; - - for (uint8_t i = 0; i < loopMax; ++i) { - if (GraphBuffer[i] > *high) *high = GraphBuffer[i]; - if (GraphBuffer[i] < *low) *low = GraphBuffer[i]; - } - - //12% fuzz in case highs and lows aren't clipped - if (addFuzz) { - *high *= .88; - *low *= .88; - //*high = (int)(*high * .88); - //*low = (int)(*low * .88); - } -} - // Get or auto-detect ask clock rate int GetAskClock(const char str[], bool printAns, bool verbose) { int clock; diff --git a/client/graph.h b/client/graph.h index eac41f78e..3690ce252 100644 --- a/client/graph.h +++ b/client/graph.h @@ -31,7 +31,6 @@ void setGraphBuf(uint8_t *buff, size_t size); void save_restoreGB(uint8_t saveOpt); bool HasGraphData(); -void DetectHighLowInGraph(int *high, int *low, bool addFuzz); // Max graph trace len: 40000 (bigbuf) * 8 (at 1 bit per sample) #define MAX_GRAPH_TRACE_LEN (40000 * 8 )