summaryrefslogtreecommitdiff
path: root/ubi-utils
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-07-26 16:05:46 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-07-26 16:05:46 +0300
commit8463b874cd3ddc4932cc3674730202c097ebe837 (patch)
tree623de4fd9cf7d6756c95526eee387556eee7c1c7 /ubi-utils
parent89e94489a576d15f47b0cf229c4fb118c731779c (diff)
common: remove depricated KB,MB,GB support
KiB, MiB and GiB should be used instead. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils')
-rw-r--r--ubi-utils/src/common.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/ubi-utils/src/common.c b/ubi-utils/src/common.c
index bcb775c..50a07ab 100644
--- a/ubi-utils/src/common.c
+++ b/ubi-utils/src/common.c
@@ -52,24 +52,6 @@ static int get_multiplier(const char *str)
if (!strcmp(str, "GiB"))
return 1024 * 1024 * 1024;
- /* Handle deprecated stuff */
- if (!strcmp(str, "KB") || !strcmp(str, "Kib") || !strcmp(str, "kib") ||
- !strcmp(str, "kiB")) {
- fprintf(stderr, "Warning: use \"KiB\" instead of \"%s\" to "
- "specify Kilobytes - support will be removed\n", str);
- return 1024;
- }
- if (!strcmp(str, "MB") || !strcmp(str, "Mib") || !strcmp(str, "mb")) {
- fprintf(stderr, "Warning: use \"MiB\" instead of \"%s\", "
- "this support will be removed\n", str);
- return 1024*1024;
- }
- if (!strcmp(str, "GB") || !strcmp(str, "Gib") || !strcmp(str, "gb")) {
- fprintf(stderr, "Warning: use \"GiB\" instead of \"%s\", "
- "this support will be removed\n", str);
- return 1024*1024*1024;
- }
-
return -1;
}