functions.sh: remove unnecessary variables