Cleanups:

* Reduce Beast dependencies
* Remove unnecessary includes
* Don't use deprecated bassert macros
* Don't use beast::String in Json::Value
This commit is contained in:
Nik Bougalis
2016-01-18 21:20:08 -08:00
parent b4f8dc7abf
commit 555cd59a59
28 changed files with 39 additions and 49 deletions

View File

@@ -20,6 +20,7 @@
#include <BeastConfig.h>
#include <ripple/basics/contract.h>
#include <ripple/json/Object.h>
#include <cassert>
namespace Json {

View File

@@ -20,6 +20,7 @@
#include <BeastConfig.h>
#include <ripple/basics/contract.h>
#include <ripple/json/json_reader.h>
#include <algorithm>
#include <string>
#include <cctype>

View File

@@ -276,15 +276,6 @@ Value::Value ( std::string const& value )
}
Value::Value (beast::String const& beastString)
: type_ ( stringValue )
, allocated_ ( true )
{
value_.string_ = valueAllocator ()->duplicateStringValue ( beastString.toStdString ().c_str (),
(unsigned int)beastString.length () );
}
Value::Value ( const StaticString& value )
: type_ ( stringValue )
, allocated_ ( false )

View File

@@ -19,6 +19,7 @@
#include <BeastConfig.h>
#include <ripple/json/json_writer.h>
#include <cassert>
#include <iomanip>
#include <sstream>
#include <string>