Skip to content

Commit 09e8f86

Browse files
Adapted XML and flexbuffers to the new writer
1 parent ef47113 commit 09e8f86

21 files changed

+293
-548
lines changed

include/rfl/flexbuf/OutputArray.hpp

Lines changed: 0 additions & 59 deletions
This file was deleted.

include/rfl/flexbuf/OutputNull.hpp

Lines changed: 0 additions & 38 deletions
This file was deleted.

include/rfl/flexbuf/OutputObject.hpp

Lines changed: 0 additions & 61 deletions
This file was deleted.

include/rfl/flexbuf/OutputValue.hpp

Lines changed: 0 additions & 67 deletions
This file was deleted.

include/rfl/flexbuf/OutputVar.hpp

Lines changed: 0 additions & 27 deletions
This file was deleted.

include/rfl/flexbuf/Parser.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#ifndef FLEXBUF_PARSER_HPP_
22
#define FLEXBUF_PARSER_HPP_
33

4+
#include "../parsing/Parser.hpp"
45
#include "Reader.hpp"
56
#include "Writer.hpp"
6-
#include "../parsing/Parser.hpp"
77

88
namespace rfl {
99
namespace flexbuf {

include/rfl/flexbuf/Reader.hpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,6 @@ struct Reader {
105105

106106
rfl::Result<InputArrayType> to_array(
107107
const InputVarType& _var) const noexcept {
108-
// Necessary, because we write empty vectors as null.
109-
if (_var.IsNull()) {
110-
return flexbuffers::Vector::EmptyVector();
111-
}
112108
if (!_var.IsVector()) {
113109
return rfl::Error("Could not cast to Vector.");
114110
}
@@ -133,10 +129,6 @@ struct Reader {
133129

134130
rfl::Result<InputObjectType> to_object(
135131
const InputVarType& _var) const noexcept {
136-
// Necessary, because we write empty maps as null.
137-
if (_var.IsNull()) {
138-
return flexbuffers::Map::EmptyMap();
139-
}
140132
if (!_var.IsMap()) {
141133
return rfl::Error("Could not cast to Map!");
142134
}

0 commit comments

Comments
 (0)