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 {
165165 */
166166 void dropNullPlaceholders ();
167167
168- void omitEndingLineFeed ();
169-
170168public: // overridden from Writer
171169 virtual std::string write (const Value& root);
172170
@@ -176,7 +174,6 @@ class JSON_API FastWriter : public Writer {
176174 std::string document_;
177175 bool yamlCompatiblityEnabled_;
178176 bool dropNullPlaceholders_;
179- bool omitEndingLineFeed_;
180177};
181178
182179/* * \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() {}
284284// //////////////////////////////////////////////////////////////////
285285
286286FastWriter::FastWriter ()
287- : yamlCompatiblityEnabled_(false ), dropNullPlaceholders_(false ),
288- omitEndingLineFeed_ (false ) {}
287+ : yamlCompatiblityEnabled_(false ), dropNullPlaceholders_(false ) {}
289288
290289void FastWriter::enableYAMLCompatibility () { yamlCompatiblityEnabled_ = true ; }
291290
292291void FastWriter::dropNullPlaceholders () { dropNullPlaceholders_ = true ; }
293292
294- void FastWriter::omitEndingLineFeed () { omitEndingLineFeed_ = true ; }
295-
296293std::string FastWriter::write (const Value& root) {
297294 document_ = " " ;
298295 writeValue (root);
299- if (!omitEndingLineFeed_)
300- document_ += " \n " ;
296+ document_ += " \n " ;
301297 return document_;
302298}
303299
You can’t perform that action at this time.
0 commit comments