remove unused buf_to_u32_handler
Purge an unused routine from the tree and remove a layering violation. If this code is needed, it should reappear somwhere in src/jtag/, where struct scan_field gets defined.
This commit is contained in:
parent
4d4b2958a5
commit
bc07ee82fb
|
@ -327,12 +327,3 @@ int str_to_buf(const char *str, int str_len, uint8_t *buf, int buf_len, int radi
|
||||||
|
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
int buf_to_u32_handler(uint8_t *in_buf, void *priv, struct scan_field *field)
|
|
||||||
{
|
|
||||||
uint32_t *dest = priv;
|
|
||||||
|
|
||||||
*dest = buf_get_u32(in_buf, 0, 32);
|
|
||||||
|
|
||||||
return ERROR_OK;
|
|
||||||
}
|
|
||||||
|
|
|
@ -90,9 +90,6 @@ int str_to_buf(const char *str, int len,
|
||||||
uint8_t *bin_buf, int buf_size, int radix);
|
uint8_t *bin_buf, int buf_size, int radix);
|
||||||
char* buf_to_str(const uint8_t *buf, int size, int radix);
|
char* buf_to_str(const uint8_t *buf, int size, int radix);
|
||||||
|
|
||||||
struct scan_field;
|
|
||||||
int buf_to_u32_handler(uint8_t *in_buf, void *priv, struct scan_field *field);
|
|
||||||
|
|
||||||
#define CEIL(m, n) (((m) + (n) - 1) / (n))
|
#define CEIL(m, n) (((m) + (n) - 1) / (n))
|
||||||
|
|
||||||
/* read a uint32_t from a buffer in target memory endianness */
|
/* read a uint32_t from a buffer in target memory endianness */
|
||||||
|
|
Loading…
Reference in New Issue