dead code

This commit is contained in:
rusefillc 2021-11-08 19:01:18 -05:00
parent 8aaecb568e
commit fe25b24050
3 changed files with 2 additions and 13 deletions

View File

@ -134,14 +134,6 @@ void Logging::appendFloat(float value, int precision) {
} }
} }
void appendMsgPrefix(Logging *logging) {
logging->append(PROTOCOL_MSG DELIMETER);
}
void appendMsgPostfix(Logging *logging) {
logging->append(DELIMETER);
}
void Logging::reset() { void Logging::reset() {
linePointer = buffer; linePointer = buffer;
*linePointer = 0; *linePointer = 0;

View File

@ -73,6 +73,3 @@ public:
}; };
void initLoggingExt(Logging *logging, const char *name, char *buffer, int bufferSize); void initLoggingExt(Logging *logging, const char *name, char *buffer, int bufferSize);
void appendMsgPrefix(Logging *logging);
void appendMsgPostfix(Logging *logging);

View File

@ -317,12 +317,12 @@ void printHistogram(Logging *logging, histogram_s *histogram) {
int len = hsReport(histogram, report); int len = hsReport(histogram, report);
logging->reset(); logging->reset();
appendMsgPrefix(logging); logging.append(PROTOCOL_MSG DELIMETER);
logging.appendPrintf("histogram %s *", histogram->name); logging.appendPrintf("histogram %s *", histogram->name);
for (int i = 0; i < len; i++) for (int i = 0; i < len; i++)
logging.appendPrintf("%d ", report[i]); logging.appendPrintf("%d ", report[i]);
logging.appendPrintf("*"); logging.appendPrintf("*");
appendMsgPostfix(logging); logging.append(DELIMETER);
scheduleLogging(logging); scheduleLogging(logging);
#else #else
UNUSED(logging); UNUSED(logging);