Commit ba0a137b authored by Milo Yip's avatar Milo Yip

Remove unnecessary code in GenericSchemaDocument::CreateSchemaRecursive()

parent cb2f340d
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment