lib/misc: Remove unused oct2bin and hex2bin
diff --git a/common/lib/misc.c b/common/lib/misc.c
index 00e8a02e..bbe62399 100644
--- a/common/lib/misc.c
+++ b/common/lib/misc.c
@@ -115,35 +115,6 @@ size_t get_trailing_zeros(uint64_t val) {
return 64;
}
-uint32_t oct2bin(uint8_t *str, uint32_t max) {
- uint32_t value = 0;
- while (max-- > 0) {
- if (*str < '0' || *str > '7') {
- break; // Invalid octal character
- }
- value <<= 3;
- value += *str++ - '0';
- }
- return value;
-}
-
-uint32_t hex2bin(uint8_t *str, uint32_t size) {
- uint32_t value = 0;
- while (size-- > 0) {
- value <<= 4;
- if (*str >= '0' && *str <= '9')
- value += (uint32_t)((*str) - '0');
- else if (*str >= 'A' && *str <= 'F')
- value += (uint32_t)((*str) - 'A' + 10);
- else if (*str >= 'a' && *str <= 'f')
- value += (uint32_t)((*str) - 'a' + 10);
- else
- break; // Invalid hex character
- str++;
- }
- return value;
-}
-
void *get_device_tree_blob(const char *config, size_t extra_size) {
int ret;
diff --git a/common/lib/misc.h b/common/lib/misc.h
index 623a293e..9123bb05 100644
--- a/common/lib/misc.h
+++ b/common/lib/misc.h
@@ -46,9 +46,6 @@ bool parse_resolution(size_t *width, size_t *height, size_t *bpp, const char *bu
bool get_absolute_path(char *path_ptr, const char *path, const char *pwd, size_t size);
-uint32_t oct2bin(uint8_t *str, uint32_t max);
-uint32_t hex2bin(uint8_t *str, uint32_t size);
-
uint64_t sqrt(uint64_t a_nInput);
size_t get_trailing_zeros(uint64_t val);
