From 9778e22636766438fab8ccf7f7011bea787199ae Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Thu, 13 Jun 2019 20:10:51 +0200 Subject: [PATCH] SysTest: drop unused function --- systest/SysTest | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/systest/SysTest b/systest/SysTest index daa2677..085cc09 100644 --- a/systest/SysTest +++ b/systest/SysTest @@ -37,28 +37,6 @@ is_mounted () { return $? } -mount_image() { - if [ ! -d "$2" ]; then - mount -o rw,remount rootfs / - mkdir -p "$2" 2>/dev/null - [ ! -d "$2" ] && return 1 - fi - - if ! is_mounted "$2"; then - LOOPDEVICE= - for LOOP in 0 1 2 3 4 5 6 7; do - if ! is_mounted "$2"; then - LOOPDEVICE=/dev/block/loop$LOOP - [ -e $LOOPDEVICE ] || mknod $LOOPDEVICE b 7 $LOOP 2>/dev/null - losetup $LOOPDEVICE "$1" && mount -t ext4 -o loop $LOOPDEVICE "$2" - if is_mounted "$2"; then - break; - fi - fi - done - fi -} - # taken from Magisk, with minor modifications for NanoDroid mount_partitions () { SLOT=$(grep_cmdline androidboot.slot_suffix)