From 2c38a813fc1bd97061759305b51b69daebe01ca4 Mon Sep 17 00:00:00 2001 From: Matt Whitlock Date: Fri, 10 Nov 2023 04:12:50 -0500 Subject: [PATCH] wallet: delete redundant get_script and get_addr methods Their implementations were identical to those in the superclass. --- src/jmclient/wallet.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/jmclient/wallet.py b/src/jmclient/wallet.py index 728751f..06f99fe 100644 --- a/src/jmclient/wallet.py +++ b/src/jmclient/wallet.py @@ -2234,10 +2234,6 @@ class BIP32Wallet(BaseWallet): self._script_map[script] = path return script - def get_script(self, mixdepth, address_type, index): - path = self.get_path(mixdepth, address_type, index) - return self.get_script_from_path(path) - @deprecated def get_key(self, mixdepth, address_type, index): path = self.get_path(mixdepth, address_type, index) @@ -2527,14 +2523,6 @@ class FidelityBondMixin(object): def _get_default_used_indices(self): return {x: [0, 0, 0, 0] for x in range(self.max_mixdepth + 1)} - def get_script(self, mixdepth, address_type, index): - path = self.get_path(mixdepth, address_type, index) - return self.get_script_from_path(path) - - def get_addr(self, mixdepth, address_type, index): - script = self.get_script(mixdepth, address_type, index) - return self.script_to_addr(script) - def add_burner_output(self, path, txhex, block_height, merkle_branch, block_index, write=True): """