beast cleanup and tidying:

* Replace custom types with C++11 <cstdint> types
* Fix sqlite integer intos and uses
* Fix String implicit integer constructors
* Escape the enclosing namespace in sqdb
* Replace contract checks with assert
* Make many header files compile independently
* Remove the dependence on beast_core.h in many places
* Remove unused or obsolete classes and functions
* Remove unused or obsolete macros
* Remove unused network functions and files
* Remove unused or obsolete classes:
  - ChildProcess
  - HighResolutionTimer
  - InterProcessLock
  - Throw
  - TrackedMutex
  - UntrackedMutex
  - XmlDocument
  - XmlElement
This commit is contained in:
Vinnie Falco
2014-03-22 09:43:11 -07:00
parent 936f45c7ec
commit b2d97703c6
440 changed files with 3139 additions and 9643 deletions

View File

@@ -21,8 +21,11 @@
#include "PeerImp.h"
#include "../../ripple/common/seconds_clock.h"
#include "../../beast/beast/ByteOrder.h"
#include <boost/config.hpp>
#include <cassert>
#include <condition_variable>
#include <mutex>
@@ -535,14 +538,14 @@ public:
boost::unordered::piecewise_construct,
boost::make_tuple (peer->getShortId()),
boost::make_tuple (peer)));
check_postcondition(idResult.second);
assert(idResult.second);
std::pair<PeerByPublicKey::iterator, bool> keyResult(
m_publicKeyMap.emplace (
boost::unordered::piecewise_construct,
boost::make_tuple (peer->getNodePublic()),
boost::make_tuple (peer)));
check_postcondition(keyResult.second);
assert(keyResult.second);
m_journal.debug <<
"activated " << peer->getRemoteAddress() <<
@@ -550,7 +553,7 @@ public:
":" << RipplePublicKey(peer->getNodePublic()) << ")";
// We just accepted this peer so we have non-zero active peers
check_postcondition(size() != 0);
assert(size() != 0);
}
/** A peer is being disconnected