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

@@ -25,7 +25,6 @@ PathRequest::PathRequest (
const boost::shared_ptr<InfoSub>& subscriber, int id, PathRequests& owner,
beast::Journal journal)
: m_journal (journal)
, mLock (this, "PathRequest", __FILE__, __LINE__)
, mOwner (owner)
, wpSubscriber (subscriber)
, jvStatus (Json::objectValue)
@@ -72,7 +71,7 @@ PathRequest::~PathRequest()
bool PathRequest::isValid ()
{
ScopedLockType sl (mLock, __FILE__, __LINE__);
ScopedLockType sl (mLock);
return bValid;
}
@@ -114,7 +113,7 @@ bool PathRequest::needsUpdate (bool newOnly, LedgerIndex index)
bool PathRequest::isValid (RippleLineCache::ref crCache)
{
ScopedLockType sl (mLock, __FILE__, __LINE__);
ScopedLockType sl (mLock);
bValid = raSrcAccount.isSet () && raDstAccount.isSet () && saDstAmount.isPositive ();
Ledger::pointer lrLedger = crCache->getLedger ();
@@ -305,13 +304,13 @@ int PathRequest::parseJson (const Json::Value& jvParams, bool complete)
Json::Value PathRequest::doClose (const Json::Value&)
{
m_journal.debug << iIdentifier << " closed";
ScopedLockType sl (mLock, __FILE__, __LINE__);
ScopedLockType sl (mLock);
return jvStatus;
}
Json::Value PathRequest::doStatus (const Json::Value&)
{
ScopedLockType sl (mLock, __FILE__, __LINE__);
ScopedLockType sl (mLock);
return jvStatus;
}
@@ -325,7 +324,7 @@ Json::Value PathRequest::doUpdate (RippleLineCache::ref cache, bool fast)
{
m_journal.debug << iIdentifier << " update " << (fast ? "fast" : "normal");
ScopedLockType sl (mLock, __FILE__, __LINE__);
ScopedLockType sl (mLock);
if (!isValid (cache))
return jvStatus;