Browse Source

Remove unused Boost includes

0.15
practicalswift 8 years ago
parent
commit
49de096c2a
  1. 1
      src/bitcoind.cpp
  2. 1
      src/checkqueue.h
  3. 1
      src/coins.h
  4. 2
      src/fs.cpp
  5. 1
      src/init.cpp
  6. 2
      src/keystore.cpp
  7. 1
      src/keystore.h
  8. 2
      src/net_processing.cpp
  9. 2
      src/qt/optionsdialog.cpp
  10. 2
      src/qt/transactiontablemodel.cpp
  11. 1
      src/rpc/client.cpp
  12. 2
      src/rpc/server.cpp
  13. 1
      src/sync.h
  14. 2
      src/test/DoS_tests.cpp
  15. 1
      src/test/base58_tests.cpp
  16. 1
      src/test/bloom_tests.cpp
  17. 2
      src/test/cuckoocache_tests.cpp
  18. 2
      src/test/dbwrapper_tests.cpp
  19. 1
      src/test/sigopcount_tests.cpp
  20. 1
      src/test/streams_tests.cpp
  21. 2
      src/test/test_bitcoin.cpp
  22. 1
      src/torcontrol.cpp
  23. 3
      src/util.cpp
  24. 1
      src/util.h
  25. 1
      src/validation.cpp
  26. 1
      src/wallet/db.cpp
  27. 1
      src/wallet/test/wallet_tests.cpp
  28. 1
      src/wallet/walletdb.cpp

1
src/bitcoind.cpp

@ -20,7 +20,6 @@
#include "httprpc.h" #include "httprpc.h"
#include "utilstrencodings.h" #include "utilstrencodings.h"
#include <boost/algorithm/string/predicate.hpp>
#include <boost/thread.hpp> #include <boost/thread.hpp>
#include <stdio.h> #include <stdio.h>

1
src/checkqueue.h

@ -12,7 +12,6 @@
#include <boost/foreach.hpp> #include <boost/foreach.hpp>
#include <boost/thread/condition_variable.hpp> #include <boost/thread/condition_variable.hpp>
#include <boost/thread/locks.hpp>
#include <boost/thread/mutex.hpp> #include <boost/thread/mutex.hpp>
template <typename T> template <typename T>

1
src/coins.h

@ -17,7 +17,6 @@
#include <assert.h> #include <assert.h>
#include <stdint.h> #include <stdint.h>
#include <boost/foreach.hpp>
#include <unordered_map> #include <unordered_map>
/** /**

2
src/fs.cpp

@ -1,7 +1,5 @@
#include "fs.h" #include "fs.h"
#include <boost/filesystem.hpp>
namespace fsbridge { namespace fsbridge {
FILE *fopen(const fs::path& p, const char *mode) FILE *fopen(const fs::path& p, const char *mode)

1
src/init.cpp

@ -55,7 +55,6 @@
#endif #endif
#include <boost/algorithm/string/classification.hpp> #include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/algorithm/string/replace.hpp> #include <boost/algorithm/string/replace.hpp>
#include <boost/algorithm/string/split.hpp> #include <boost/algorithm/string/split.hpp>
#include <boost/bind.hpp> #include <boost/bind.hpp>

2
src/keystore.cpp

@ -9,8 +9,6 @@
#include "pubkey.h" #include "pubkey.h"
#include "util.h" #include "util.h"
#include <boost/foreach.hpp>
bool CKeyStore::AddKey(const CKey &key) { bool CKeyStore::AddKey(const CKey &key) {
return AddKeyPubKey(key, key.GetPubKey()); return AddKeyPubKey(key, key.GetPubKey());
} }

1
src/keystore.h

@ -13,7 +13,6 @@
#include "sync.h" #include "sync.h"
#include <boost/signals2/signal.hpp> #include <boost/signals2/signal.hpp>
#include <boost/variant.hpp>
/** A virtual base class for key stores */ /** A virtual base class for key stores */
class CKeyStore class CKeyStore

2
src/net_processing.cpp

@ -30,8 +30,6 @@
#include "utilstrencodings.h" #include "utilstrencodings.h"
#include "validationinterface.h" #include "validationinterface.h"
#include <boost/thread.hpp>
#if defined(NDEBUG) #if defined(NDEBUG)
# error "Bitcoin cannot be compiled without assertions." # error "Bitcoin cannot be compiled without assertions."
#endif #endif

2
src/qt/optionsdialog.cpp

@ -21,8 +21,6 @@
#include "wallet/wallet.h" // for CWallet::GetRequiredFee() #include "wallet/wallet.h" // for CWallet::GetRequiredFee()
#endif #endif
#include <boost/thread.hpp>
#include <QDataWidgetMapper> #include <QDataWidgetMapper>
#include <QDir> #include <QDir>
#include <QIntValidator> #include <QIntValidator>

2
src/qt/transactiontablemodel.cpp

@ -26,8 +26,6 @@
#include <QIcon> #include <QIcon>
#include <QList> #include <QList>
#include <boost/foreach.hpp>
// Amount column is right-aligned it contains numbers // Amount column is right-aligned it contains numbers
static int column_alignments[] = { static int column_alignments[] = {
Qt::AlignLeft|Qt::AlignVCenter, /* status */ Qt::AlignLeft|Qt::AlignVCenter, /* status */

1
src/rpc/client.cpp

@ -10,7 +10,6 @@
#include <set> #include <set>
#include <stdint.h> #include <stdint.h>
#include <boost/algorithm/string/case_conv.hpp> // for to_lower()
#include <univalue.h> #include <univalue.h>
class CRPCConvertParam class CRPCConvertParam

2
src/rpc/server.cpp

@ -18,9 +18,7 @@
#include <boost/bind.hpp> #include <boost/bind.hpp>
#include <boost/foreach.hpp> #include <boost/foreach.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/signals2/signal.hpp> #include <boost/signals2/signal.hpp>
#include <boost/thread.hpp>
#include <boost/algorithm/string/case_conv.hpp> // for to_upper() #include <boost/algorithm/string/case_conv.hpp> // for to_upper()
#include <boost/algorithm/string/classification.hpp> #include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/split.hpp> #include <boost/algorithm/string/split.hpp>

1
src/sync.h

@ -9,7 +9,6 @@
#include "threadsafety.h" #include "threadsafety.h"
#include <boost/thread/condition_variable.hpp> #include <boost/thread/condition_variable.hpp>
#include <boost/thread/locks.hpp>
#include <boost/thread/mutex.hpp> #include <boost/thread/mutex.hpp>
#include <boost/thread/recursive_mutex.hpp> #include <boost/thread/recursive_mutex.hpp>

2
src/test/DoS_tests.cpp

@ -18,8 +18,6 @@
#include <stdint.h> #include <stdint.h>
#include <boost/date_time/posix_time/posix_time_types.hpp>
#include <boost/foreach.hpp>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
// Tests these internal-to-net_processing.cpp methods: // Tests these internal-to-net_processing.cpp methods:

1
src/test/base58_tests.cpp

@ -15,7 +15,6 @@
#include "utilstrencodings.h" #include "utilstrencodings.h"
#include "test/test_bitcoin.h" #include "test/test_bitcoin.h"
#include <boost/foreach.hpp>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <univalue.h> #include <univalue.h>

1
src/test/bloom_tests.cpp

@ -19,7 +19,6 @@
#include <vector> #include <vector>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <boost/tuple/tuple.hpp>
BOOST_FIXTURE_TEST_SUITE(bloom_tests, BasicTestingSetup) BOOST_FIXTURE_TEST_SUITE(bloom_tests, BasicTestingSetup)

2
src/test/cuckoocache_tests.cpp

@ -7,8 +7,6 @@
#include "test/test_bitcoin.h" #include "test/test_bitcoin.h"
#include "random.h" #include "random.h"
#include <thread> #include <thread>
#include <boost/thread.hpp>
/** Test Suite for CuckooCache /** Test Suite for CuckooCache
* *

2
src/test/dbwrapper_tests.cpp

@ -7,8 +7,6 @@
#include "random.h" #include "random.h"
#include "test/test_bitcoin.h" #include "test/test_bitcoin.h"
#include <boost/assign/std/vector.hpp> // for 'operator+=()'
#include <boost/assert.hpp>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
// Test if a string consists entirely of null characters // Test if a string consists entirely of null characters

1
src/test/sigopcount_tests.cpp

@ -12,7 +12,6 @@
#include <vector> #include <vector>
#include <boost/foreach.hpp>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
// Helpers: // Helpers:

1
src/test/streams_tests.cpp

@ -7,7 +7,6 @@
#include "test/test_bitcoin.h" #include "test/test_bitcoin.h"
#include <boost/assign/std/vector.hpp> // for 'operator+=()' #include <boost/assign/std/vector.hpp> // for 'operator+=()'
#include <boost/assert.hpp>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
using namespace boost::assign; // bring 'operator+=()' into scope using namespace boost::assign; // bring 'operator+=()' into scope

2
src/test/test_bitcoin.cpp

@ -25,8 +25,6 @@
#include <memory> #include <memory>
#include <boost/thread.hpp>
uint256 insecure_rand_seed = GetRandHash(); uint256 insecure_rand_seed = GetRandHash();
FastRandomContext insecure_rand_ctx(insecure_rand_seed); FastRandomContext insecure_rand_ctx(insecure_rand_seed);

1
src/torcontrol.cpp

@ -18,7 +18,6 @@
#include <boost/bind.hpp> #include <boost/bind.hpp>
#include <boost/signals2/signal.hpp> #include <boost/signals2/signal.hpp>
#include <boost/foreach.hpp> #include <boost/foreach.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/algorithm/string/split.hpp> #include <boost/algorithm/string/split.hpp>
#include <boost/algorithm/string/classification.hpp> #include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/replace.hpp> #include <boost/algorithm/string/replace.hpp>

3
src/util.cpp

@ -77,11 +77,8 @@
#endif #endif
#include <boost/algorithm/string/case_conv.hpp> // for to_lower() #include <boost/algorithm/string/case_conv.hpp> // for to_lower()
#include <boost/algorithm/string/join.hpp>
#include <boost/algorithm/string/predicate.hpp> // for startswith() and endswith() #include <boost/algorithm/string/predicate.hpp> // for startswith() and endswith()
#include <boost/foreach.hpp>
#include <boost/program_options/detail/config_file.hpp> #include <boost/program_options/detail/config_file.hpp>
#include <boost/program_options/parsers.hpp>
#include <boost/thread.hpp> #include <boost/thread.hpp>
#include <openssl/crypto.h> #include <openssl/crypto.h>
#include <openssl/rand.h> #include <openssl/rand.h>

1
src/util.h

@ -28,7 +28,6 @@
#include <vector> #include <vector>
#include <boost/signals2/signal.hpp> #include <boost/signals2/signal.hpp>
#include <boost/thread/exceptions.hpp>
static const bool DEFAULT_LOGTIMEMICROS = false; static const bool DEFAULT_LOGTIMEMICROS = false;
static const bool DEFAULT_LOGIPS = false; static const bool DEFAULT_LOGIPS = false;

1
src/validation.cpp

@ -44,7 +44,6 @@
#include <boost/algorithm/string/replace.hpp> #include <boost/algorithm/string/replace.hpp>
#include <boost/algorithm/string/join.hpp> #include <boost/algorithm/string/join.hpp>
#include <boost/math/distributions/poisson.hpp>
#include <boost/thread.hpp> #include <boost/thread.hpp>
#if defined(NDEBUG) #if defined(NDEBUG)

1
src/wallet/db.cpp

@ -20,7 +20,6 @@
#include <boost/foreach.hpp> #include <boost/foreach.hpp>
#include <boost/thread.hpp> #include <boost/thread.hpp>
#include <boost/version.hpp>
// //
// CDB // CDB

1
src/wallet/test/wallet_tests.cpp

@ -15,7 +15,6 @@
#include "validation.h" #include "validation.h"
#include "wallet/test/wallet_test_fixture.h" #include "wallet/test/wallet_test_fixture.h"
#include <boost/foreach.hpp>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <univalue.h> #include <univalue.h>

1
src/wallet/walletdb.cpp

@ -18,7 +18,6 @@
#include <atomic> #include <atomic>
#include <boost/version.hpp>
#include <boost/foreach.hpp> #include <boost/foreach.hpp>
#include <boost/thread.hpp> #include <boost/thread.hpp>

Loading…
Cancel
Save