functions.sh: remove unnecessary local variable declarations