From f7469c3accba6f047a5bf0b2da329f6b456fa4d1 Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Wed, 10 Jun 2015 10:24:15 +0200 Subject: [PATCH] removed unused function --- libethereum/ClientBase.cpp | 7 ------- libethereum/ClientBase.h | 1 - libethereum/Interface.h | 1 - libweb3jsonrpc/WebThreeStubServerBase.cpp | 2 -- 4 files changed, 11 deletions(-) diff --git a/libethereum/ClientBase.cpp b/libethereum/ClientBase.cpp index 01a9442ec..61bccbc3f 100644 --- a/libethereum/ClientBase.cpp +++ b/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); -} diff --git a/libethereum/ClientBase.h b/libethereum/ClientBase.h index 46ff075a6..2edb29c95 100644 --- a/libethereum/ClientBase.h +++ b/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; diff --git a/libethereum/Interface.h b/libethereum/Interface.h index b6318d8e9..f631fb43e 100644 --- a/libethereum/Interface.h +++ b/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; diff --git a/libweb3jsonrpc/WebThreeStubServerBase.cpp b/libweb3jsonrpc/WebThreeStubServerBase.cpp index 6639688d9..ea3224471 100644 --- a/libweb3jsonrpc/WebThreeStubServerBase.cpp +++ b/libweb3jsonrpc/WebThreeStubServerBase.cpp @@ -1185,5 +1185,3 @@ Json::Value WebThreeStubServerBase::shh_getMessages(string const& _filterId) BOOST_THROW_EXCEPTION(JsonRpcException(Errors::ERROR_RPC_INVALID_PARAMS)); } } - -