8000 common: remove unused is_array() · archlinux/arch-install-scripts@77e0895 · GitHub
[go: up one dir, main page]

Skip to content

Commit 77e0895

Browse files
committed
common: remove unused is_array()
The function hasn't been in use for a number of years. Cc: Dave Reisner <dreisner@archlinux.org> Fixes: b240f6e ("common: declare pseudofs types as hash") Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
1 parent 77c3cc7 commit 77e0895

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

common

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,6 @@ ignore_error() {
8484
return 0
8585
}
8686

87-
in_array() {
88-
local i
89-
for i in "${@:2}"; do
90-
[[ $1 = "$i" ]] && return 0
91-
done
92-
return 1
93-
}
94-
9587
chroot_add_mount() {
9688
mount "$@" && CHROOT_ACTIVE_MOUNTS=("$2" "${CHROOT_ACTIVE_MOUNTS[@]}")
9789
}

0 commit comments

Comments
 (0)
0