diff --git a/ethereum/spec/src/main/java/tech/pegasys/teku/spec/schemas/registry/BaseSchemaProvider.java b/ethereum/spec/src/main/java/tech/pegasys/teku/spec/schemas/registry/BaseSchemaProvider.java index 674d96616af..91642b3e525 100644 --- a/ethereum/spec/src/main/java/tech/pegasys/teku/spec/schemas/registry/BaseSchemaProvider.java +++ b/ethereum/spec/src/main/java/tech/pegasys/teku/spec/schemas/registry/BaseSchemaProvider.java @@ -36,7 +36,6 @@ private BaseSchemaProvider( final SpecMilestone untilMilestone, final boolean isConstant) { this.schemaId = schemaId; - // validateCreators(schemaProviderCreators); final List> creatorsList = new ArrayList<>(schemaProviderCreators); SchemaProviderCreator lastCreator = null; @@ -53,35 +52,6 @@ private BaseSchemaProvider( } } - // private void validateCreators(final List> schemaProviderCreators) { - // checkArgument( - // !schemaProviderCreators.isEmpty(), "There should be at least 1 creator for %s", - // schemaId); - // for (int i = 0; i < schemaProviderCreators.size(); i++) { - // final SchemaProviderCreator currentCreator = schemaProviderCreators.get(i); - // if (i > 0) { - // checkArgument( - // currentCreator.milestone.isGreaterThan(schemaProviderCreators.get(i - 1).milestone), - // "Creator's milestones must be in order for %s", - // schemaId); - // } - // final boolean isLast = i == schemaProviderCreators.size() - 1; - // if (isLast) { - // checkArgument( - // currentCreator.untilMilestone.isEmpty() - // || - // currentCreator.untilMilestone.get().isGreaterThanOrEqualTo(currentCreator.milestone), - // "Last creator untilMilestone must be greater or equal than milestone in %s", - // schemaId); - // } else { - // checkArgument( - // currentCreator.untilMilestone.isEmpty(), - // "Only last creator is allowed to use until for %s", - // schemaId); - // } - // } - // } - @Override public SpecMilestone getEffectiveMilestone(final SpecMilestone milestone) { return getSchemaCreator(milestone).milestone; @@ -98,19 +68,6 @@ public SchemaId getSchemaId() { return schemaId; } - // static SchemaProviderCreator schemaCreator( - // final SpecMilestone milestone, - // final BiFunction creationSchema) { - // return new SchemaProviderCreator<>(milestone, Optional.empty(), creationSchema); - // } - // - // static SchemaProviderCreator schemaCreator( - // final SpecMilestone milestone, - // final SpecMilestone untilMilestone, - // final BiFunction creationSchema) { - // return new SchemaProviderCreator<>(milestone, Optional.of(untilMilestone), creationSchema); - // } - protected T createSchema( final SchemaRegistry registry, final SpecMilestone effectiveMilestone,