From f7c1c05ad475ea3bbbc9e7a24f693a56f49a103e Mon Sep 17 00:00:00 2001 From: Jaromil Date: Tue, 17 Jan 2012 17:47:42 +0100 Subject: [PATCH] Removed old-style globals as suggested in #78 --- src/tomb | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/tomb b/src/tomb index 94d52b1..40af797 100755 --- a/src/tomb +++ b/src/tomb @@ -33,9 +33,6 @@ STEGHIDE=1 MKTEMP=1 MOUNTOPTS="rw,noatime,nodev" -#declare global variables -QUIET=0 -DEBUG=0 typeset -A global_opts typeset -A opts @@ -1662,15 +1659,6 @@ main() { autoload colors; colors fi - ### Set global options (useless, but for code retro-compatibility) - for opt in ${(k)global_opts}; do - if [[ $opt == '-q' ]]; then - QUIET=1 - elif [[ $opt == '-D' ]]; then - DEBUG=1 - fi - done - CMD=$subcommand CMD2=$PARAM[1] CMD3=$PARAM[2]