@@ -43,17 +43,14 @@ typedef std::auto_ptr<CharReader> CharReaderPtr;
4343// ////////////////////////////////
4444
4545Features::Features ()
46- : allowComments_(true ), strictRoot_(false ),
47- allowDroppedNullPlaceholders_ (false ), allowNumericKeys_(false ) {}
48-
46+ : allowComments_(true ), strictRoot_(false )
47+ {}
4948Features Features::all () { return Features (); }
5049
5150Features Features::strictMode () {
5251 Features features;
5352 features.allowComments_ = false ;
5453 features.strictRoot_ = true ;
55- features.allowDroppedNullPlaceholders_ = false ;
56- features.allowNumericKeys_ = false ;
5754 return features;
5855}
5956
@@ -191,15 +188,6 @@ bool Reader::readValue() {
191188 currentValue ().swapPayload (v);
192189 }
193190 break ;
194- case tokenArraySeparator:
195- if (features_.allowDroppedNullPlaceholders_ ) {
196- // "Un-read" the current token and mark the current value as a null
197- // token.
198- current_--;
199- Value v;
200- currentValue ().swapPayload (v);
201- break ;
202- }
203191 // Else, fall through...
204192 default :
205193 return addError (" Syntax error: value, object or array expected." , token);
@@ -446,11 +434,6 @@ bool Reader::readObject(Token& /*tokenStart*/) {
446434 if (tokenName.type_ == tokenString) {
447435 if (!decodeString (tokenName, name))
448436 return recoverFromError (tokenObjectEnd);
449- } else if (tokenName.type_ == tokenNumber && features_.allowNumericKeys_ ) {
450- Value numberName;
451- if (!decodeNumber (tokenName, numberName))
452- return recoverFromError (tokenObjectEnd);
453- name = numberName.asString ();
454437 } else {
455438 break ;
456439 }
0 commit comments