From 7f8d85140fd229e97e539ca463fbd94545997fd6 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 4 Oct 2025 05:23:47 +0100 Subject: xbmk: remove the setcfg function this allows me to remove several eval calls, and the errors relating to configs can now show exactly which function they occured in, allowing for easier debugging. once again, eval should be used sparingly if at all. Signed-off-by: Leah Rowe --- include/lib.sh | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'include/lib.sh') diff --git a/include/lib.sh b/include/lib.sh index 11f66107..833f284d 100644 --- a/include/lib.sh +++ b/include/lib.sh @@ -107,16 +107,6 @@ setvars() fi } -setcfg() -{ - if [ $# -gt 1 ]; then - printf "e \"%s\" f missing && return %s;\n" "$1" "$2" - else - printf "e \"%s\" f not && err \"Missing config '$1'\";\n" "$1" - fi - printf ". \"%s\" || err \"Could not read config '$1'\";\n" "$1" -} - chkvars() { while [ $# -gt 0 ]; do -- cgit v1.2.1