Skip to content

Commit 2193dcf

Browse files
committed
Removed dead code
1 parent 6b5b1ed commit 2193dcf

2 files changed

Lines changed: 0 additions & 25 deletions

File tree

src/image.c

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -86,30 +86,6 @@ static int wolfBoot_verify_signature(uint8_t *hash, uint8_t *sig)
8686
}
8787
#endif
8888

89-
#if 0
90-
static uint8_t find_header(uint8_t *haystack, uint8_t type, uint8_t **ptr)
91-
{
92-
uint8_t *p = haystack;
93-
while (*p != 0) {
94-
if (*p == HDR_PADDING) {
95-
p++;
96-
continue;
97-
}
98-
if (*p == type) {
99-
p++;
100-
*ptr = (p + 1);
101-
return *p;
102-
}
103-
p++;
104-
p += (*p + 1);
105-
}
106-
*ptr = NULL;
107-
return 0;
108-
}
109-
#endif
110-
111-
112-
11389
static uint8_t get_header_ext(struct wolfBoot_image *img, uint8_t type, uint8_t **ptr);
11490

11591
static uint8_t get_header(struct wolfBoot_image *img, uint8_t type, uint8_t **ptr)

src/libwolfboot.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ void wolfBoot_success(void)
228228
hal_flash_lock();
229229
}
230230

231-
232231
uint8_t wolfBoot_find_header(uint8_t *haystack, uint8_t type, uint8_t **ptr)
233232
{
234233
uint8_t *p = haystack;

0 commit comments

Comments
 (0)