mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 09:38:19 +00:00
Remove deprecated json NullDoubleWriter class
This commit is contained in:
parent
401a074036
commit
aba1f431cf
3 changed files with 2 additions and 30 deletions
|
@ -4,12 +4,6 @@
|
|||
|
||||
#include <memory>
|
||||
|
||||
#define RAPIDJSON_HAS_STDSTRING 1
|
||||
// Remove in v7.1 when removing NullDoubleWriter below and also remove
|
||||
// rapidjson include tweaks from CMake's dynamic_plugin_base target.
|
||||
#include <rapidjson/document.h>
|
||||
#include <rapidjson/writer.h>
|
||||
|
||||
#include "zeek/threading/Formatter.h"
|
||||
|
||||
namespace zeek::json::detail {
|
||||
|
@ -39,16 +33,6 @@ public:
|
|||
Value* ParseValue(const std::string& s, const std::string& name, TypeTag type,
|
||||
TypeTag subtype = TYPE_ERROR) const override;
|
||||
|
||||
class NullDoubleWriter : public rapidjson::Writer<rapidjson::StringBuffer> {
|
||||
public:
|
||||
[[deprecated("Remove in v7.1 - This is an implementation detail.")]] NullDoubleWriter(
|
||||
rapidjson::StringBuffer& stream);
|
||||
bool Double(double d);
|
||||
|
||||
private:
|
||||
std::unique_ptr<json::detail::NullDoubleWriter> writer;
|
||||
};
|
||||
|
||||
private:
|
||||
void BuildJSON(zeek::json::detail::NullDoubleWriter& writer, Value* val, const std::string& name = "") const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue