mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
`Json::Object` and related objects are not used at all, so this change removes `include/xrpl/json/Object.h` and all downstream files. There are a number of minor downstream changes as well. Full list of deleted classes and functions: * `Json::Collections` * `Json::Object` * `Json::Array` * `Json::WriterObject` * `Json::setArray` * `Json::addObject` * `Json::appendArray` * `Json::appendObject` The last helper function, `copyFrom`, seemed a bit more complex and was actually used in a few places, so it was moved to `LedgerToJson.h` instead of deleting it.
27 lines
525 B
C++
27 lines
525 B
C++
#include <xrpl/json/json_value.h>
|
|
#include <xrpl/protocol/ErrorCodes.h>
|
|
#include <xrpl/protocol/RPCErr.h>
|
|
#include <xrpl/protocol/jss.h>
|
|
|
|
namespace xrpl {
|
|
|
|
struct RPCErr;
|
|
|
|
// VFALCO NOTE Deprecated function
|
|
Json::Value
|
|
rpcError(error_code_i iError)
|
|
{
|
|
Json::Value jvResult(Json::objectValue);
|
|
RPC::inject_error(iError, jvResult);
|
|
return jvResult;
|
|
}
|
|
|
|
// VFALCO NOTE Deprecated function
|
|
bool
|
|
isRpcError(Json::Value jvResult)
|
|
{
|
|
return jvResult.isObject() && jvResult.isMember(jss::error);
|
|
}
|
|
|
|
} // namespace xrpl
|