Remove unused variables and/or function calls

This commit is contained in:
practicalswift
2017-07-20 23:10:37 +02:00
parent 9b94054b7c
commit 2e6080bbf3
18 changed files with 29 additions and 360 deletions

View File

@@ -143,16 +143,6 @@ class TxStore(object):
return None
return value
def get_transaction(self, txhash):
ret = None
serialized_tx = self.get(txhash)
if serialized_tx is not None:
f = BytesIO(serialized_tx)
ret = CTransaction()
ret.deserialize(f)
ret.calc_sha256()
return ret
def add_transaction(self, tx):
tx.calc_sha256()
try: