From 6eb92017e4511d9be4d442a9d1445ab7b1c10f1d Mon Sep 17 00:00:00 2001
From: Elliu <elliu@hashi.re>
Date: Fri, 9 Sep 2022 17:32:35 +0200
Subject: [PATCH] Remove unused functions

---
 stpkg | 27 ---------------------------
 1 file changed, 27 deletions(-)

diff --git a/stpkg b/stpkg
index 6c104c6..9aff73e 100755
--- a/stpkg
+++ b/stpkg
@@ -188,33 +188,6 @@ __upload_file() {
     [ $? -ne 0 ] && die "Failed to upload sticker $NAME for pack $PACK_NAME to $STPKG_HOMESERV"
 }
 
-picture_process_sticker() {
-    local FILE=$1    # The source file
-    local DEST=$2    # The destination file
-    local NAME=$3    # The pretty name of the sticker
-    local WIDTH=$4   # The WIDTH!
-    local HEIGHT=$5  # The HEIGHT!
-    local TYPE=$6    # The type of the file (png/gif/webp)
-    local DSTTYPE=$7 # The type of the destination file (png/gif)
-
-    local repage=`[ "x${TYPE}" != "xgif" ] && echo '+repage' || echo ''`
-    local resize=`[ "x${TYPE}" != "xgif" ] && echo "-resize ${WIDTH}x${HEIGHT}" || echo ''`
-    local OPTS=`[ "$TYPE" = "png" ] && echo '-type TrueColor PNG32:' || echo ' -coalesce '`
-
-    info "File '$FILE' => '$DEST' ($TYPE) | OPTS = '$OPTS'"
-
-    convert "$FILE" -bordercolor none -border 1 "$DEST" 1>&2    || die "$NAME failed on border"
-    convert "$DEST" -trim ${repage} "$DEST" 1>&2                || die "$NAME failed on trim"
-    convert -background none -gravity center "$DEST" ${resize} $OPTS"$DEST" 1>&2 \
-        || die "$NAME failed on ${WIDTH}x${HEIGHT} resize"
-}
-
-picture_resize_preview() {
-    local DEST=$1   # The file
-    local NAME=$2   # The pretty name for the sticker
-    convert "$DEST" -resize "128x128" "$DEST" 1>&2 || die "$NAME failed at 128x128 resize"
-}
-
 create_sticker_json() {
     local PACK_NAME=$1  # Pack name
     local NAME=$2       # Pretty name for the sticker
-- 
GitLab