Skip to content
Snippets Groups Projects
Commit 4357b93b authored by Alexandre Abadie's avatar Alexandre Abadie Committed by GitHub
Browse files

Merge pull request #7625 from gebart/pr/fmt-rm-pwr

fmt: Remove unused pwr function
parents b720c304 301a5d8e
No related branches found
No related tags found
No related merge requests found
......@@ -51,17 +51,6 @@ static inline int _is_digit(char c)
return (c >= '0' && c <= '9');
}
static inline unsigned pwr(unsigned val, unsigned exp)
{
unsigned res = 1;
for (unsigned i = 0; i < exp; i++) {
res *= val;
}
return res;
}
size_t fmt_byte_hex(char *out, uint8_t byte)
{
if (out) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment