stop calling validate() in newReader/Writer()
[platform/upstream/jsoncpp.git] / src / lib_json / json_reader.cpp
index 1e7db68..103bf67 100644 (file)
@@ -1863,9 +1863,6 @@ CharReaderBuilder::~CharReaderBuilder()
 {}
 CharReader* CharReaderBuilder::newCharReader() const
 {
-  if (!validate(NULL)) throw std::runtime_error("invalid settings");
-  // TODO: Maybe serialize the invalid settings into the exception.
-
   bool collectComments = settings_["collectComments"].asBool();
   OurFeatures features = OurFeatures::all();
   features.allowComments_ = settings_["allowComments"].asBool();