Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Commit

Permalink
Remove unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
gumb0 committed Apr 11, 2017
1 parent 3f1e9d0 commit 414a057
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
22 changes: 0 additions & 22 deletions libethereum/Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -775,28 +775,6 @@ Block Client::block(h256 const& _blockHash, PopulationStatistics* o_stats) const
}
}

State Client::state(unsigned _txi, h256 const& _blockHash) const
{
try
{
return block(_blockHash).fromPending(_txi);
}
catch (Exception& ex)
{
ex << errinfo_block(bc().block(_blockHash));
onBadBlock(ex);
return State(chainParams().accountStartNonce);
}
}

eth::State Client::state(unsigned _txi) const
{
DEV_READ_GUARDED(x_postSeal)
return m_postSeal.fromPending(_txi);
assert(false);
return State(chainParams().accountStartNonce);
}

void Client::flushTransactions()
{
doWork();
Expand Down
6 changes: 0 additions & 6 deletions libethereum/Client.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,6 @@ class Client: public ClientBase, protected Worker
// [PRIVATE API - only relevant for base clients, not available in general]
/// Get the block.
dev::eth::Block block(h256 const& _blockHash, PopulationStatistics* o_stats) const;
/// Get the state of the given block part way through execution, immediately before transaction
/// index @a _txi.
dev::eth::State state(unsigned _txi, h256 const& _block) const;
/// Get the state of the currently pending block part way through execution, immediately before
/// transaction index @a _txi.
dev::eth::State state(unsigned _txi) const;

/// Get the object representing the current state of Ethereum.
dev::eth::Block postState() const { ReadGuard l(x_postSeal); return m_postSeal; }
Expand Down

0 comments on commit 414a057

Please sign in to comment.