From a3873250770edf684e1ef64cd14a7c7e4e608d14 Mon Sep 17 00:00:00 2001 From: dymik739 Date: Sat, 29 Jul 2023 20:57:51 +0300 Subject: [PATCH] remove unused get_mantice_complement() function --- bitutilities.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/bitutilities.py b/bitutilities.py index c6fdfa5..416051e 100644 --- a/bitutilities.py +++ b/bitutilities.py @@ -225,18 +225,6 @@ def format_device_state_table(table) -> str: return pt.get_string() -def get_mantice_complement(register: BasicRegister) -> BasicRegister: - memory: list[bool] = list(register.memory) - invertion_enabled: bool = False - - for i, v in list(enumerate(memory))[::-1]: - memory[i] = v ^ invertion_enabled - - if v: - invertion_enabled = True - - return BasicRegister(deque(memory)) - def binary_multiplication_method_1(first_term: BasicRegister, second_term: BasicRegister) \ -> tuple[BasicRegister, list[list[str]]]: """