Browse Source

removed unused function

cl-refactor
Marek Kotewicz 10 years ago
parent
commit
f7469c3acc
  1. 7
      libethereum/ClientBase.cpp
  2. 1
      libethereum/ClientBase.h
  3. 1
      libethereum/Interface.h
  4. 2
      libweb3jsonrpc/WebThreeStubServerBase.cpp

7
libethereum/ClientBase.cpp

@ -465,10 +465,3 @@ int ClientBase::compareBlockHashes(h256 _h1, h256 _h2) const
}
return -1;
}
bool ClientBase::isInBlockHashRange(h256 _from, h256 _to, h256 _q) const
{
int c1 = compareBlockHashes(_from, _q);
int c2 = compareBlockHashes(_q, _to);
return (c1 == 0 || c1 == -1) && (c2 == 0 || c2 == -1);
}

1
libethereum/ClientBase.h

@ -118,7 +118,6 @@ public:
virtual h256 hashFromNumber(BlockNumber _number) const override;
virtual BlockNumber numberFromHash(h256 _blockHash) const override;
virtual int compareBlockHashes(h256 _h1, h256 _h2) const override;
virtual bool isInBlockHashRange(h256 _from, h256 _to, h256 _q) const override;
virtual BlockInfo blockInfo(h256 _hash) const override;
virtual BlockDetails blockDetails(h256 _hash) const override;
virtual Transaction transaction(h256 _transactionHash) const override;

1
libethereum/Interface.h

@ -138,7 +138,6 @@ public:
virtual h256 hashFromNumber(BlockNumber _number) const = 0;
virtual BlockNumber numberFromHash(h256 _blockHash) const = 0;
virtual int compareBlockHashes(h256 _h1, h256 _h2) const = 0;
virtual bool isInBlockHashRange(h256 _from, h256 _to, h256 _q) const = 0;
virtual BlockInfo blockInfo(h256 _hash) const = 0;
virtual BlockDetails blockDetails(h256 _hash) const = 0;

2
libweb3jsonrpc/WebThreeStubServerBase.cpp

@ -1185,5 +1185,3 @@ Json::Value WebThreeStubServerBase::shh_getMessages(string const& _filterId)
BOOST_THROW_EXCEPTION(JsonRpcException(Errors::ERROR_RPC_INVALID_PARAMS));
}
}

Loading…
Cancel
Save