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