mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
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:
@@ -20,6 +20,7 @@
|
||||
#include <BeastConfig.h>
|
||||
#include <ripple/basics/contract.h>
|
||||
#include <ripple/json/Object.h>
|
||||
#include <cassert>
|
||||
|
||||
namespace Json {
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <BeastConfig.h>
|
||||
#include <ripple/basics/contract.h>
|
||||
#include <ripple/json/json_reader.h>
|
||||
#include <algorithm>
|
||||
#include <string>
|
||||
#include <cctype>
|
||||
|
||||
|
||||
@@ -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 )
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
#include <BeastConfig.h>
|
||||
#include <ripple/json/json_writer.h>
|
||||
#include <cassert>
|
||||
#include <iomanip>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
|
||||
Reference in New Issue
Block a user