Remove redundant normalize_unit function
authorNikos Skalkotos <skalkoto@grnet.gr>
Thu, 10 May 2012 14:32:34 +0000 (17:32 +0300)
committerNikos Skalkotos <skalkoto@grnet.gr>
Thu, 10 May 2012 14:32:34 +0000 (17:32 +0300)
snf-image-helper/common.sh

index ec10768..7bd72ee 100644 (file)
@@ -95,19 +95,6 @@ get_distro() {
     fi
 }
 
-normalize_unit() {
-    unit=$(tr [a-z] [A-Z] <<< $1)
-
-    case $unit in
-        "S") echo "s";;
-        "B"|"") echo "B";;
-        "KB") echo "kB";;
-        "MB") echo "MB";;
-        "GB") echo "GB";;
-        *)  log_error "Unknown unit type: \`$1'";;
-    esac
-}
-
 get_last_partition_id() {
     local dev="$1"
     if ! output="$("$PARTED" -s -m "$dev" print)"; then