Skip to content

Commit

Permalink
Remove unused Block::txsNumber()
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan 'kuvaldini' Kuvaldin <[email protected]>
  • Loading branch information
kuvaldini committed Jun 4, 2021
1 parent de47f01 commit 2273993
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 13 deletions.
2 changes: 0 additions & 2 deletions shared_model/backend/protobuf/block.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ namespace shared_model {

interface::types::TimestampType createdTime() const override;

interface::types::TransactionsNumberType txsNumber() const override;

interface::types::HashCollectionType rejected_transactions_hashes()
const override;

Expand Down
5 changes: 0 additions & 5 deletions shared_model/backend/protobuf/impl/block.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,6 @@ namespace shared_model {
return impl_->payload_.created_time();
}

interface::types::TransactionsNumberType Block::txsNumber() const {
// return boost::size(transactions());
return impl_->payload_.tx_number();
}

interface::types::HashCollectionType Block::rejected_transactions_hashes()
const {
return impl_->rejected_transactions_hashes_;
Expand Down
1 change: 0 additions & 1 deletion shared_model/interfaces/iroha_internal/block.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ namespace shared_model {
.appendNamed("hash", hash().hex())
.appendNamed("height", height())
.appendNamed("prevHash", prevHash().hex())
.appendNamed("txsNumber", txsNumber())
.appendNamed("createdtime", createdTime())
.appendNamed("transactions", transactions())
.appendNamed("signatures", signatures())
Expand Down
5 changes: 0 additions & 5 deletions shared_model/interfaces/iroha_internal/block.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ namespace shared_model {
*/
virtual const types::HashType &prevHash() const = 0;

/**
* @return amount of transactions in block
*/
virtual types::TransactionsNumberType txsNumber() const = 0;

/**
* @return collection of transactions
*/
Expand Down

0 comments on commit 2273993

Please sign in to comment.