base-files: drop get_partition_by_name shell function

find_mmc_part provides a better alternative and all users of
get_partition_by_name have been removed.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle 2021-11-01 14:03:42 +00:00
parent b070359035
commit 73657dfbdd
No known key found for this signature in database
GPG Key ID: 5A8F39C31C3217CA
1 changed files with 0 additions and 9 deletions

View File

@ -220,15 +220,6 @@ hex_le32_to_cpu() {
echo "$@"
}
get_partition_by_name() {
for partname in /sys/class/block/$1/*/name; do
[ "$(cat ${partname})" = "$2" ] && {
basename ${partname%%/name}
break
}
done
}
get_partitions() { # <device> <filename>
local disk="$1"
local filename="$2"