shell: remove deprecated print_size() function

This commit is contained in:
S.J.R. van Schaik 2017-06-14 14:14:14 +02:00
parent 8f680b9d5b
commit 316e3a13d2

View file

@ -78,25 +78,6 @@ static void print_hex_ascii(const char *buf, size_t len)
}
}
static void print_size(size_t size)
{
if (size == 0) {
printf("0");
#if defined(TIB)
} else if (size % TIB == 0) {
printf("%" PRSZu " TiB", size / TIB);
#endif
} else if (size % GIB == 0) {
printf("%" PRSZu " GiB", size / GIB);
} else if (size % MIB == 0) {
printf("%" PRSZu " MiB", size / MIB);
} else if (size % KIB == 0) {
printf("%" PRSZu " KiB", size / KIB);
} else {
printf("%" PRSZu " B", size);
}
}
static void do_flash_probe(const char *s)
{
(void)s;