summaryrefslogtreecommitdiff
path: root/include/lib.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-14 13:19:25 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-14 13:19:25 +0100
commit98724d701b10a037e8ffa7ce2864a08993268517 (patch)
treec354f485c3da5681798dad51b6d760358061a029 /include/lib.sh
parentbaea03c67270a8e213f825d833e0c0b1959d34d0 (diff)
lib.sh: remove the items() function
it's pretty much just doing the same thing as ls -1 remove it! Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/lib.sh')
-rwxr-xr-xinclude/lib.sh13
1 files changed, 0 insertions, 13 deletions
diff --git a/include/lib.sh b/include/lib.sh
index c2ad87ed..a329fa3f 100755
--- a/include/lib.sh
+++ b/include/lib.sh
@@ -118,19 +118,6 @@ done
relname="$projectname-$version"
export LOCALVERSION="-$projectname-${version%%-*}"
-items()
-{
- rval=1
- e "$1" d not && return 1
- for x in "$1/"*; do
- # -e used because this is for files *or* directories
- [ -e "$x" ] || continue
- printf "%s\n" "${x##*/}" 2>/dev/null
- rval=0
- done
- return $rval
-}
-
scan_config()
{
awkstr=" /\{.*$1.*}{/ {flag=1;next} /\}/{flag=0} flag { print }"