Deleted some obviously dead code. (#468)

Rob Dawson 6 years ago committed by GitHub
parent dbb664ceed
commit d1b24e97a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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)); .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. * Returns the balance of the given account at a specific block number.
* *
@ -180,15 +169,6 @@ public class BlockchainQueries {
.orElse(-1); .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 * Returns the number of transactions sent from the given address in the block at the given
* height. * height.
@ -469,16 +449,6 @@ public class BlockchainQueries {
txs.get(txIndex), header.getNumber(), blockHeaderHash, txIndex); 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. * Returns the transaction receipt associated with the given transaction hash.
* *

Loading…
Cancel
Save