File tree 2 files changed +2
-9
lines changed
2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -164,8 +164,6 @@ class JSON_API FastWriter : public Writer {
164
164
*/
165
165
void dropNullPlaceholders ();
166
166
167
- void omitEndingLineFeed ();
168
-
169
167
public: // overridden from Writer
170
168
virtual std::string write (const Value& root);
171
169
@@ -175,7 +173,6 @@ class JSON_API FastWriter : public Writer {
175
173
std::string document_;
176
174
bool yamlCompatiblityEnabled_;
177
175
bool dropNullPlaceholders_;
178
- bool omitEndingLineFeed_;
179
176
};
180
177
181
178
/* * \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 @@ -280,20 +280,16 @@ Writer::~Writer() {}
280
280
// //////////////////////////////////////////////////////////////////
281
281
282
282
FastWriter::FastWriter ()
283
- : yamlCompatiblityEnabled_(false ), dropNullPlaceholders_(false ),
284
- omitEndingLineFeed_ (false ) {}
283
+ : yamlCompatiblityEnabled_(false ), dropNullPlaceholders_(false ) {}
285
284
286
285
void FastWriter::enableYAMLCompatibility () { yamlCompatiblityEnabled_ = true ; }
287
286
288
287
void FastWriter::dropNullPlaceholders () { dropNullPlaceholders_ = true ; }
289
288
290
- void FastWriter::omitEndingLineFeed () { omitEndingLineFeed_ = true ; }
291
-
292
289
std::string FastWriter::write (const Value& root) {
293
290
document_ = " " ;
294
291
writeValue (root);
295
- if (!omitEndingLineFeed_)
296
- document_ += " \n " ;
292
+ document_ += " \n " ;
297
293
return document_;
298
294
}
299
295
You can’t perform that action at this time.
0 commit comments