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 @@ -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 @@ -279,20 +279,16 @@ Writer::~Writer() {}
279
279
// //////////////////////////////////////////////////////////////////
280
280
281
281
FastWriter::FastWriter ()
282
- : yamlCompatiblityEnabled_(false ), dropNullPlaceholders_(false ),
283
- omitEndingLineFeed_ (false ) {}
282
+ : yamlCompatiblityEnabled_(false ), dropNullPlaceholders_(false ) {}
284
283
285
284
void FastWriter::enableYAMLCompatibility () { yamlCompatiblityEnabled_ = true ; }
286
285
287
286
void FastWriter::dropNullPlaceholders () { dropNullPlaceholders_ = true ; }
288
287
289
- void FastWriter::omitEndingLineFeed () { omitEndingLineFeed_ = true ; }
290
-
291
288
std::string FastWriter::write (const Value& root) {
292
289
document_ = " " ;
293
290
writeValue (root);
294
- if (!omitEndingLineFeed_)
295
- document_ += " \n " ;
291
+ document_ += " \n " ;
296
292
return document_;
297
293
}
298
294
You can’t perform that action at this time.
0 commit comments