diff mbox series

[8/9] tests/acceptance: Remove now unused pow2ceil()

Message ID 20210623180021.898286-9-f4bug@amsat.org (mailing list archive)
State New, archived
Headers show
Series hw/sd: Allow card size not power of 2 again | expand

Commit Message

Philippe Mathieu-Daudé June 23, 2021, 6 p.m. UTC
We don't use pow2ceil() anymore, remove it.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 tests/acceptance/boot_linux_console.py | 12 ------------
 1 file changed, 12 deletions(-)

Comments

Willian Rampazzo July 5, 2021, 3:32 p.m. UTC | #1
On Wed, Jun 23, 2021 at 3:10 PM Philippe Mathieu-Daudé <f4bug@amsat.org> wrote:
>
> We don't use pow2ceil() anymore, remove it.
>
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
>  tests/acceptance/boot_linux_console.py | 12 ------------
>  1 file changed, 12 deletions(-)
>

Reviewed-by: Willian Rampazzo <willianr@redhat.com>
diff mbox series

Patch

diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot_linux_console.py
index 48c0ba09117..77bc80c505d 100644
--- a/tests/acceptance/boot_linux_console.py
+++ b/tests/acceptance/boot_linux_console.py
@@ -29,12 +29,6 @@ 
 except CmdNotFoundError:
     P7ZIP_AVAILABLE = False
 
-"""
-Round up to next power of 2
-"""
-def pow2ceil(x):
-    return 1 if x == 0 else 2**(x - 1).bit_length()
-
 """
 Expand file size
 """
@@ -43,12 +37,6 @@  def image_expand(path, size):
         with open(path, 'ab+') as fd:
             fd.truncate(size)
 
-"""
-Expand file size to next power of 2
-"""
-def image_pow2ceil_expand(path):
-    image_expand(path, pow2ceil(os.path.getsize(path)))
-
 class LinuxKernelTest(Test):
     KERNEL_COMMON_COMMAND_LINE = 'printk.time=0 '