From 9e907ea21973741c4c2d5e45ab63fe28cc423145 Mon Sep 17 00:00:00 2001 From: miloyip Date: Thu, 7 May 2015 17:22:16 +0800 Subject: [PATCH] Remove unused multiTypeSchema --- include/rapidjson/schema.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/include/rapidjson/schema.h b/include/rapidjson/schema.h index 7521962..98186b0 100644 --- a/include/rapidjson/schema.h +++ b/include/rapidjson/schema.h @@ -89,7 +89,7 @@ struct BaseSchemaArray { template struct SchemaValidationContext { SchemaValidationContext(const BaseSchema* s) : - schema(s), valueSchema(), multiTypeSchema(), notValidator(), objectDependencies(), inArray(false) + schema(s), valueSchema(), notValidator(), objectDependencies(), inArray(false) { } @@ -100,7 +100,6 @@ struct SchemaValidationContext { const BaseSchema* schema; const BaseSchema* valueSchema; - const BaseSchema* multiTypeSchema; SchemaValidatorArray allOfValidators; SchemaValidatorArray anyOfValidators; SchemaValidatorArray oneOfValidators; @@ -913,9 +912,6 @@ private: return false; PopSchema(); - if (!schemaStack_.Empty() && CurrentContext().multiTypeSchema) - PopSchema(); - return true; }