]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/commitdiff
xdg-ninja: remove unused variables
authorAsperatus <thomas@ballasi.com>
Fri, 13 May 2022 17:54:03 +0000 (13:54 -0400)
committerb3nj5m1n <47924309+b3nj5m1n@users.noreply.github.com>
Fri, 13 May 2022 21:09:39 +0000 (23:09 +0200)
Most variables were unused, and even more than that, it could cause
collisions as the variable named "HELP" was defined in some functions,
changing the value of the currently removed variable.

xdg-ninja.sh

index ed8b6644fcb725d5c51fdb168d7b427632f32d70..4a53226e6ec1439ff02044f4ba2fa74050ab6658 100755 (executable)
@@ -50,12 +50,6 @@ then
     exit
 fi
 
-ERR=0
-WARN=1
-INFO=2
-SUCS=3
-HELP=4
-
 # Function to expand enviornment variables in string
 # https://stackoverflow.com/a/20316582/11110290
 apply_shell_expansion() {