From 0d686794c7b5974232bd535cbe5b13fd689b2ce8 Mon Sep 17 00:00:00 2001 From: Filipe GP <4021025+Eastrall@users.noreply.github.com> Date: Sat, 19 Aug 2023 13:09:50 +0200 Subject: [PATCH] Remove default constructor generation --- .../Generator/Default/RosalinaBindingsGenerator.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Editor/Scripts/Generator/Default/RosalinaBindingsGenerator.cs b/Editor/Scripts/Generator/Default/RosalinaBindingsGenerator.cs index d48f976..8ed6285 100644 --- a/Editor/Scripts/Generator/Default/RosalinaBindingsGenerator.cs +++ b/Editor/Scripts/Generator/Default/RosalinaBindingsGenerator.cs @@ -40,7 +40,6 @@ public RosalinaGenerationResult Generate(UIDocumentAsset documentAsset) .AddMembers(propertyStatements) .AddMembers( CreateVisualElementRootProperty(), - CreateDefaultConstructor(documentAsset.Name), CreateConstructorWithVisualElement(documentAsset.Name), initializeMethod ); @@ -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))