From 07c55881f07a6458c84d52e9aa7bf5782b963410 Mon Sep 17 00:00:00 2001 From: Lorenz Herzberger Date: Thu, 12 Jan 2023 10:31:35 +0100 Subject: [PATCH] removed unused code Signed-off-by: Lorenz Herzberger --- planetmint/backend/query.py | 7 ------- planetmint/backend/tarantool/query.py | 8 -------- 2 files changed, 15 deletions(-) diff --git a/planetmint/backend/query.py b/planetmint/backend/query.py index 5f60c6a..c2856d8 100644 --- a/planetmint/backend/query.py +++ b/planetmint/backend/query.py @@ -84,13 +84,6 @@ def store_governance_transaction(connection, transaction): raise NotImplementedError -@singledispatch -def get_governance_transaction_by_id(connection, transaction_id): - """Get the transaction by transaction id.""" - - raise NotImplementedError - - @singledispatch def get_transaction_by_id(connection, transaction_id): """Get the transaction by transaction id.""" diff --git a/planetmint/backend/tarantool/query.py b/planetmint/backend/tarantool/query.py index 7d8ce37..8a2e619 100644 --- a/planetmint/backend/tarantool/query.py +++ b/planetmint/backend/tarantool/query.py @@ -175,14 +175,6 @@ def store_governance_transaction(connection, transaction): raise OperationDataInsertionError() -@register_query(TarantoolDBConnection) -def get_governance_transaction_by_id(connection, transaction_id): - txs = connection.run(connection.space(TARANT_TABLE_GOVERNANCE).select(transaction_id, index=TARANT_ID_SEARCH)) - if len(txs) == 0: - return None - return DbTransaction.from_tuple(txs[0]) - - @register_query(TarantoolDBConnection) def get_transaction_by_id(connection, transaction_id, table=TARANT_TABLE_TRANSACTION): txs = connection.run(connection.space(table).select(transaction_id, index=TARANT_ID_SEARCH))