Removed unused custom strchr function

This commit is contained in:
Alexandre Paillier
2022-05-31 16:31:39 +02:00
parent 3674212016
commit 31aff6a95f
2 changed files with 0 additions and 13 deletions

View File

@@ -43,17 +43,6 @@ void convertUint256BE(uint8_t *data, uint32_t length, uint256_t *target) {
readu256BE(tmp, target);
}
int local_strchr(char *string, char ch) {
unsigned int length = strlen(string);
unsigned int i;
for (i = 0; i < length; i++) {
if (string[i] == ch) {
return i;
}
}
return -1;
}
uint64_t u64_from_BE(const uint8_t *in, uint8_t size) {
uint8_t i = 0;
uint64_t res = 0;

View File

@@ -26,8 +26,6 @@ void array_hexstr(char* strbuf, const void* bin, unsigned int len);
void convertUint256BE(uint8_t* data, uint32_t length, uint256_t* target);
int local_strchr(char* string, char ch);
uint64_t u64_from_BE(const uint8_t* in, uint8_t size);
bool uint256_to_decimal(const uint8_t* value, size_t value_len, char* out, size_t out_len);