Skip to content

Commit 39f83ef

Browse files
committed
Remove unused statistics formatting methods and associated header includes from MyMesh class. Whoops.
1 parent 80d6dd4 commit 39f83ef

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

examples/companion_radio/MyMesh.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1612,20 +1612,6 @@ void MyMesh::enterCLIRescue() {
16121612
Serial.println("========= CLI Rescue =========");
16131613
}
16141614

1615-
void MyMesh::formatStatsReply(char *reply) {
1616-
// Use StatsFormatHelper
1617-
StatsFormatHelper::formatCoreStats(reply, board, *_ms, _err_flags, _mgr);
1618-
}
1619-
1620-
void MyMesh::formatRadioStatsReply(char *reply) {
1621-
StatsFormatHelper::formatRadioStats(reply, _radio, radio_driver, getTotalAirTime(), getReceiveAirTime());
1622-
}
1623-
1624-
void MyMesh::formatPacketStatsReply(char *reply) {
1625-
StatsFormatHelper::formatPacketStats(reply, radio_driver, getNumSentFlood(), getNumSentDirect(),
1626-
getNumRecvFlood(), getNumRecvDirect());
1627-
}
1628-
16291615
void MyMesh::checkCLIRescueCmd() {
16301616
int len = strlen(cli_command);
16311617
while (Serial.available() && len < sizeof(cli_command)-1) {

examples/companion_radio/MyMesh.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969

7070
#include <helpers/BaseChatMesh.h>
7171
#include <helpers/TransportKeyStore.h>
72-
#include <helpers/StatsFormatHelper.h>
7372

7473
/* -------------------------------------------------------------------------------------- */
7574

@@ -171,11 +170,6 @@ class MyMesh : public BaseChatMesh, public DataStoreHost {
171170
void checkCLIRescueCmd();
172171
void checkSerialInterface();
173172

174-
// Stats methods
175-
void formatStatsReply(char *reply);
176-
void formatRadioStatsReply(char *reply);
177-
void formatPacketStatsReply(char *reply);
178-
179173
// helpers, short-cuts
180174
void savePrefs() { _store->savePrefs(_prefs, sensors.node_lat, sensors.node_lon); }
181175
void saveChannels() { _store->saveChannels(this); }

0 commit comments

Comments
 (0)