From 17a0b8f708f10b06b4559f656c99e70fc313776d Mon Sep 17 00:00:00 2001 From: Tom Scavo Date: Sat, 14 Jan 2017 16:12:34 -0500 Subject: [PATCH] Remove deprecated functions --- lib/http_tools.sh | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/lib/http_tools.sh b/lib/http_tools.sh index 92fc74e..7f75dc2 100755 --- a/lib/http_tools.sh +++ b/lib/http_tools.sh @@ -538,28 +538,3 @@ percent_decode () { printf '%b' "${1//%/\\x}" } - -# DEPRECATED: Use percent_encode and percent_decode instead. -# -# URL encoder/decoder -# see: https://gist.github.com/cdown/1163649 -url_encode () { - local c - local l=${#1} - - for (( i = 0 ; i < l ; i++ )); do - c=${1:i:1} - case "$c" in - [a-zA-Z0-9.~_-]) printf "$c" ;; - ' ') printf + ;; - *) printf '%%%X' "'$c" - esac - done - - return 0 -} -url_decode () { - local data=${1//+/ } - printf '%b' "${data//%/\x}" -} -