]> www.infradead.org Git - mtd-utils.git/commitdiff
common: remove depricated KB,MB,GB support
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 26 Jul 2009 13:05:46 +0000 (16:05 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 26 Jul 2009 13:05:46 +0000 (16:05 +0300)
KiB, MiB and GiB should be used instead.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
ubi-utils/src/common.c

index bcb775c1ca7ad5a823ffe6b97ac38e200f21cdfc..50a07abc29574291fbb77283494a144ba1de7512 100644 (file)
@@ -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;
 }