diff --git a/src/rest.cpp b/src/rest.cpp index ee0098f60..0dac3428a 100644 --- a/src/rest.cpp +++ b/src/rest.cpp @@ -210,10 +210,6 @@ static bool rest_headers(Config &config, HTTPRequest *req, "output format not found (available: .bin, .hex)"); } } - - // not reached - // continue to process further HTTP reqs on this cxn - return true; } static bool rest_block(const Config &config, HTTPRequest *req, @@ -287,10 +283,6 @@ static bool rest_block(const Config &config, HTTPRequest *req, AvailableDataFormatsString() + ")"); } } - - // not reached - // continue to process further HTTP reqs on this cxn - return true; } static bool rest_block_extended(Config &config, HTTPRequest *req, @@ -327,10 +319,6 @@ static bool rest_chaininfo(Config &config, HTTPRequest *req, "output format not found (available: json)"); } } - - // not reached - // continue to process further HTTP reqs on this cxn - return true; } static bool rest_mempool_info(Config &config, HTTPRequest *req, @@ -356,10 +344,6 @@ static bool rest_mempool_info(Config &config, HTTPRequest *req, "output format not found (available: json)"); } } - - // not reached - // continue to process further HTTP reqs on this cxn - return true; } static bool rest_mempool_contents(Config &config, HTTPRequest *req, @@ -385,10 +369,6 @@ static bool rest_mempool_contents(Config &config, HTTPRequest *req, "output format not found (available: json)"); } } - - // not reached - // continue to process further HTTP reqs on this cxn - return true; } static bool rest_tx(Config &config, HTTPRequest *req, @@ -450,10 +430,6 @@ static bool rest_tx(Config &config, HTTPRequest *req, AvailableDataFormatsString() + ")"); } } - - // not reached - // continue to process further HTTP reqs on this cxn - return true; } static bool rest_getutxos(Config &config, HTTPRequest *req, @@ -670,10 +646,6 @@ static bool rest_getutxos(Config &config, HTTPRequest *req, AvailableDataFormatsString() + ")"); } } - - // not reached - // continue to process further HTTP reqs on this cxn - return true; } static const struct { diff --git a/src/wallet/db.cpp b/src/wallet/db.cpp index 4399e7565..5b686de75 100644 --- a/src/wallet/db.cpp +++ b/src/wallet/db.cpp @@ -644,7 +644,6 @@ bool BerkeleyBatch::Rewrite(WalletDatabase &database, const char *pszSkip) { } MilliSleep(100); } - return false; } void BerkeleyEnvironment::Flush(bool fShutdown) {