Skip to content

Commit

Permalink
Remove default constructor generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Eastrall committed Aug 19, 2023
1 parent a2f679f commit 0d68679
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Editor/Scripts/Generator/Default/RosalinaBindingsGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public RosalinaGenerationResult Generate(UIDocumentAsset documentAsset)
.AddMembers(propertyStatements)
.AddMembers(
CreateVisualElementRootProperty(),
CreateDefaultConstructor(documentAsset.Name),
CreateConstructorWithVisualElement(documentAsset.Name),
initializeMethod
);
Expand Down Expand Up @@ -114,13 +113,6 @@ private static MemberAccessExpressionSyntax CreateRootQueryMethodAccessor()
);
}

private static ConstructorDeclarationSyntax CreateDefaultConstructor(string className)
{
return ConstructorDeclaration(Identifier(className))
.WithModifiers(TokenList(Token(SyntaxKind.PublicKeyword)))
.WithBody(Block());
}

private static ConstructorDeclarationSyntax CreateConstructorWithVisualElement(string className)
{
return ConstructorDeclaration(Identifier(className))
Expand Down

0 comments on commit 0d68679

Please sign in to comment.