Removing unused JSON functionality

This commit is contained in:
Dan Paulat 2022-12-23 00:14:15 -06:00
parent 6b90c5471d
commit 0c1706ce6f
3 changed files with 4 additions and 246 deletions

View file

@ -2,7 +2,7 @@
#include <optional>
#include <boost/json.hpp>
#include <boost/json/value.hpp>
namespace scwx
{
@ -13,28 +13,6 @@ namespace util
namespace json
{
bool FromJsonBool(const boost::json::object& json,
const std::string& key,
bool& value,
const bool defaultValue);
bool FromJsonInt64(const boost::json::object& json,
const std::string& key,
int64_t& value,
const int64_t defaultValue,
std::optional<int64_t> minValue,
std::optional<int64_t> maxValue);
bool FromJsonInt64Array(const boost::json::object& json,
const std::string& key,
std::vector<int64_t>& values,
const std::vector<int64_t>& defaultValues,
std::optional<int64_t> minValue,
std::optional<int64_t> maxValue);
bool FromJsonString(const boost::json::object& json,
const std::string& key,
std::string& value,
const std::string& defaultValue,
size_t minLength = 0);
boost::json::value ReadJsonFile(const std::string& path);
void WriteJsonFile(const std::string& path,
const boost::json::value& json,