Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
Signed-off-by: tvallin <[email protected]>
  • Loading branch information
tvallin committed Sep 22, 2023
1 parent b6a088f commit 643f623
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,6 @@ void addChild(State nextState, Node.Builder<? extends Node, ?> builder) {
}

Block.Kind blockKind() {
//TODO find a better option
return Block.Kind.valueOf(qName.toUpperCase());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ private class DelegateVisitor implements Node.Visitor<A>, Invocation.Visitor<A>
@Override
public VisitResult visitCondition(Condition condition, A arg) {
VisitResult result = delegate.visitCondition(condition, arg);
if (result == VisitResult.CONTINUE && condition.then() != null) {
if (result == VisitResult.CONTINUE) {
stack.push(condition.then());
parents.push(condition);
traversing = true;
Expand Down
4 changes: 0 additions & 4 deletions archetype/engine-v2/src/main/schema/archetype.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@
</xs:attribute>
</xs:complexType>

<!-- TODO : Should I use `condition` or `cond` ? -->
<xs:attributeGroup name="condition-group">
<xs:attribute type="xs:string" name="expr">
<xs:annotation>
Expand Down Expand Up @@ -170,9 +169,6 @@
</xs:sequence>
</xs:group>

<!--Suppress this-->
<!-- -->

<xs:complexType name="glob-type">
<xs:annotation>
<xs:documentation source="version">2.0</xs:documentation>
Expand Down

0 comments on commit 643f623

Please sign in to comment.