Skip to content

Commit 0815e4f

Browse files
committed
Remove unused variables to clear warnings
1 parent e8d02fd commit 0815e4f

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

src/Parse_NMEA.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ void sempNmeaValidateChecksum(SEMP_PARSE_STATE *parse)
7878
// Read the linefeed
7979
bool sempNmeaLineFeed(SEMP_PARSE_STATE *parse, uint8_t data)
8080
{
81-
int checksum;
82-
8381
// Don't add the current character to the length
8482
parse->length -= 1;
8583

@@ -128,8 +126,6 @@ bool sempNmeaCarriageReturn(SEMP_PARSE_STATE *parse, uint8_t data)
128126
// Read the line termination
129127
bool sempNmeaLineTermination(SEMP_PARSE_STATE *parse, uint8_t data)
130128
{
131-
int checksum;
132-
133129
// Don't add the current character to the length
134130
parse->length -= 1;
135131

src/Parse_Unicore_Binary.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ bool sempUnicoreBinaryReadCrc(SEMP_PARSE_STATE *parse, uint8_t data)
9090
parse->eomCallback(parse, parse->type); // Pass parser array index
9191
else
9292
{
93-
SEMP_UNICORE_HEADER *header = (SEMP_UNICORE_HEADER *)parse->buffer;
9493
sempPrintf(parse->printDebug,
9594
"SEMP: %s Unicore, bad CRC, "
9695
"received %02x %02x %02x %02x, computed: %02x %02x %02x %02x",

src/Parse_Unicore_Hash.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,6 @@ void sempUnicoreHashValidateChecksum(SEMP_PARSE_STATE *parse)
152152
// Read the linefeed
153153
bool sempUnicoreHashLineFeed(SEMP_PARSE_STATE *parse, uint8_t data)
154154
{
155-
int checksum;
156-
157155
// Don't add the current character to the length
158156
parse->length -= 1;
159157

@@ -202,8 +200,6 @@ bool sempUnicoreHashCarriageReturn(SEMP_PARSE_STATE *parse, uint8_t data)
202200
// Read the line termination
203201
bool sempUnicoreHashLineTermination(SEMP_PARSE_STATE *parse, uint8_t data)
204202
{
205-
int checksum;
206-
207203
// Don't add the current character to the length
208204
parse->length -= 1;
209205

0 commit comments

Comments
 (0)