From 599bca55c411ada9e9454e6a004c839403feb688 Mon Sep 17 00:00:00 2001 From: Gabriel Adrian Samfira Date: Tue, 8 Mar 2022 08:07:47 +0000 Subject: [PATCH] Remove commented code --- build_library/release_util.sh | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/build_library/release_util.sh b/build_library/release_util.sh index 56c6ca0d71..9f3e766798 100644 --- a/build_library/release_util.sh +++ b/build_library/release_util.sh @@ -309,29 +309,6 @@ upload_image() { die "File '${filename}' does not exist!" fi uploads+=( "${filename}" ) - # Compress disk images - #if [[ "${filename}" =~ \.(img|bin|vdi|vhd|vmdk)$ ]]; then - # # Parse the formats as an array. This will yield an extra empty - # # array element at the end. - # readarray -td, FORMATS <<<"${FLAGS_image_compression_formats}," - # # unset the last element - # unset 'FORMATS[-1]' - # - # # An associative array we set an element on whenever we process a format. - # # This way we don't process the same format twice. A unique for array elements. - # declare -A processed_format - # for format in ${FORMATS[@]} - # do - # if [ ! -z ${processed_format[${format}]} ]; then - # info "Compressing ${filename##*/} to ${format}" - # COMPRESSED_FILENAME=$(compress_file "${filename}" "${format}") - # uploads+=( "$COMPRESSED_FILENAME" ) - # processed_format[${format}]=1 - # fi - # done - #else - # uploads+=( "${filename}" ) - #fi done if [[ -z "${digests}" ]]; then