mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-11 07:25:07 +01:00
N64.ino: Remove unused function
This does not save any space as the linker noticed it wasn't used. Also, point the (commented-out) only caller to the equivalent libc function.
This commit is contained in:
parent
b3eb3dd928
commit
d7bbc59607
@ -2033,15 +2033,6 @@ void printCartInfo_N64() {
|
||||
}
|
||||
}
|
||||
|
||||
// improved strcmp function that ignores case to prevent checksum comparison issues
|
||||
int strcicmp(char const* a, char const* b) {
|
||||
for (;; a++, b++) {
|
||||
int d = tolower((unsigned char)*a) - tolower((unsigned char)*b);
|
||||
if (d != 0 || !*a)
|
||||
return d;
|
||||
}
|
||||
}
|
||||
|
||||
/* look-up the calculated crc in the file n64.txt on sd card
|
||||
boolean searchCRC(char crcStr[9]) {
|
||||
boolean result = 0;
|
||||
@ -2063,7 +2054,7 @@ int strcicmp(char const* a, char const* b) {
|
||||
}
|
||||
|
||||
// Check if string is a match
|
||||
if (strcicmp(tempStr1, crcStr) == 0) {
|
||||
if (strcasecmp(tempStr1, crcStr) == 0) {
|
||||
// Skip the , in the file
|
||||
myFile.seekSet(myFile.curPosition() + 1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user