From 316e3a13d2c167e47c47edee995878bebb28f103 Mon Sep 17 00:00:00 2001 From: "S.J.R. van Schaik" Date: Wed, 14 Jun 2017 14:14:14 +0200 Subject: [PATCH] shell: remove deprecated print_size() function --- source/shell/flash.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/source/shell/flash.c b/source/shell/flash.c index 050adcd..680459a 100644 --- a/source/shell/flash.c +++ b/source/shell/flash.c @@ -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;