diff options
author | Milo Yip <miloyip@gmail.com> | 2016-04-17 04:17:05 +0300 |
---|---|---|
committer | Milo Yip <miloyip@gmail.com> | 2016-04-17 04:17:05 +0300 |
commit | ba0a137b9c99db1af641575ae589d2c757146c31 (patch) | |
tree | 33627abfc0d799eeee484447dddaf5ac5b0ca1a3 | |
parent | cb2f340d55a9114ab34bb08b9cf0187fe8b83a81 (diff) |
Remove unnecessary code in GenericSchemaDocument::CreateSchemaRecursive()
-rw-r--r-- | include/rapidjson/schema.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/rapidjson/schema.h b/include/rapidjson/schema.h index f7a52370..33b6a10f 100644 --- a/include/rapidjson/schema.h +++ b/include/rapidjson/schema.h @@ -1437,8 +1437,6 @@ private: const SchemaType* s = GetSchema(pointer); if (!s) CreateSchema(schema, pointer, v, document); - else if (schema) - *schema = s; for (typename ValueType::ConstMemberIterator itr = v.MemberBegin(); itr != v.MemberEnd(); ++itr) CreateSchemaRecursive(0, pointer.Append(itr->name, allocator_), itr->value, document); |