@@ -127,54 +127,6 @@ class JSON_API StreamWriterBuilder : public StreamWriter::Factory {
127
127
static void setDefaults (Json::Value* settings);
128
128
};
129
129
130
- /* * \brief Build a StreamWriter implementation.
131
- * Comments are not written, and most whitespace is omitted.
132
- * In addition, there are some special settings to allow compatibility
133
- * with the old FastWriter.
134
- * Usage:
135
- * \code
136
- * OldCompressingStreamWriterBuilder b;
137
- * b.dropNullPlaceHolders_ = true; // etc.
138
- * StreamWriter* w = b.newStreamWriter();
139
- * w->write(value, &std::cout);
140
- * delete w;
141
- * \endcode
142
- *
143
- * \deprecated Use StreamWriterBuilder
144
- */
145
- class JSON_API OldCompressingStreamWriterBuilder : public StreamWriter::Factory
146
- {
147
- public:
148
- // Note: We cannot add data-members to this class without a major version bump.
149
- // So these might as well be completely exposed.
150
-
151
- /* * \brief Drop the "null" string from the writer's output for nullValues.
152
- * Strictly speaking, this is not valid JSON. But when the output is being
153
- * fed to a browser's Javascript, it makes for smaller output and the
154
- * browser can handle the output just fine.
155
- */
156
- bool dropNullPlaceholders_;
157
- /* * \brief Do not add \n at end of document.
158
- * Normally, we add an extra newline, just because.
159
- */
160
- bool omitEndingLineFeed_;
161
- /* * \brief Add a space after ':'.
162
- * If indentation is non-empty, we surround colon with whitespace,
163
- * e.g. " : "
164
- * This will add back the trailing space when there is no indentation.
165
- * This seems dubious when the entire document is on a single line,
166
- * but we leave this here to repduce the behavior of the old `FastWriter`.
167
- */
168
- bool enableYAMLCompatibility_;
169
-
170
- OldCompressingStreamWriterBuilder ()
171
- : dropNullPlaceholders_(false )
172
- , omitEndingLineFeed_(false )
173
- , enableYAMLCompatibility_(false )
174
- {}
175
- virtual StreamWriter* newStreamWriter () const ;
176
- };
177
-
178
130
/* * \brief Abstract class for writers.
179
131
* \deprecated Use StreamWriter.
180
132
*/
@@ -192,7 +144,7 @@ class JSON_API Writer {
192
144
*consumption,
193
145
* but may be usefull to support feature such as RPC where bandwith is limited.
194
146
* \sa Reader, Value
195
- * \deprecated Use OldCompressingStreamWriterBuilder .
147
+ * \deprecated Use StreamWriterBuilder .
196
148
*/
197
149
class JSON_API FastWriter : public Writer {
198
150
public:
0 commit comments