Deleted some obviously dead code. (#468)

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
pull/2/head
Rob Dawson 6 years ago committed by GitHub
parent 966ee73f3e
commit 66b182a221
  1. 30
      ethereum/jsonrpc/src/main/java/tech/pegasys/pantheon/ethereum/jsonrpc/internal/queries/BlockchainQueries.java

@ -97,17 +97,6 @@ public class BlockchainQueries {
.orElse(UInt256.ZERO));
}
/**
* Returns the nonce of the given account at a specific block number.
*
* @param address The address of the account being queried.
* @param blockNumber The block number being queried.
* @return The nonce of the account.
*/
public UInt256 getAccountNonce(final Address address, final long blockNumber) {
throw new UnsupportedOperationException();
}
/**
* Returns the balance of the given account at a specific block number.
*
@ -180,15 +169,6 @@ public class BlockchainQueries {
.orElse(-1);
}
/**
* Returns the number of transactions in the latest block.
*
* @return The number of transactions contained in the latest block.
*/
public Optional<Integer> getTransactionCount() {
throw new UnsupportedOperationException();
}
/**
* Returns the number of transactions sent from the given address in the block at the given
* height.
@ -469,16 +449,6 @@ public class BlockchainQueries {
txs.get(txIndex), header.getNumber(), blockHeaderHash, txIndex);
}
/**
* Returns the transaction at the given index for the latest block.
*
* @param txIndex The index of the transaction to return.
* @return The transaction at the specified location.
*/
public Optional<TransactionWithMetadata> transactionByIndex(final int txIndex) {
throw new UnsupportedOperationException();
}
/**
* Returns the transaction receipt associated with the given transaction hash.
*

Loading…
Cancel
Save