Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/miloyip/rapidjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Yip <miloyip@gmail.com>2016-04-17 04:17:05 +0300
committerMilo Yip <miloyip@gmail.com>2016-04-17 04:17:05 +0300
commitba0a137b9c99db1af641575ae589d2c757146c31 (patch)
tree33627abfc0d799eeee484447dddaf5ac5b0ca1a3
parentcb2f340d55a9114ab34bb08b9cf0187fe8b83a81 (diff)
Remove unnecessary code in GenericSchemaDocument::CreateSchemaRecursive()
-rw-r--r--include/rapidjson/schema.h2
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);