File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -160,8 +160,6 @@ class JSON_API FastWriter : public Writer {
160
160
*/
161
161
void dropNullPlaceholders ();
162
162
163
- void omitEndingLineFeed ();
164
-
165
163
public: // overridden from Writer
166
164
virtual std::string write (const Value& root);
167
165
@@ -171,7 +169,6 @@ class JSON_API FastWriter : public Writer {
171
169
std::string document_;
172
170
bool yamlCompatiblityEnabled_;
173
171
bool dropNullPlaceholders_;
174
- bool omitEndingLineFeed_;
175
172
};
176
173
177
174
/* * \brief Writes a Value in <a HREF="http://www.json.org">JSON</a> format in a
Original file line number Diff line number Diff line change @@ -192,20 +192,16 @@ Writer::~Writer() {}
192
192
// //////////////////////////////////////////////////////////////////
193
193
194
194
FastWriter::FastWriter ()
195
- : yamlCompatiblityEnabled_(false ), dropNullPlaceholders_(false ),
196
- omitEndingLineFeed_ (false ) {}
195
+ : yamlCompatiblityEnabled_(false ), dropNullPlaceholders_(false ) {}
197
196
198
197
void FastWriter::enableYAMLCompatibility () { yamlCompatiblityEnabled_ = true ; }
199
198
200
199
void FastWriter::dropNullPlaceholders () { dropNullPlaceholders_ = true ; }
201
200
202
- void FastWriter::omitEndingLineFeed () { omitEndingLineFeed_ = true ; }
203
-
204
201
std::string FastWriter::write (const Value& root) {
205
202
document_ = " " ;
206
203
writeValue (root);
207
- if (!omitEndingLineFeed_)
208
- document_ += " \n " ;
204
+ document_ += " \n " ;
209
205
return document_;
210
206
}
211
207
You can’t perform that action at this time.
0 commit comments