From 2d0da37907c9b1104563ce196c97635b27fda273 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Wed, 1 Apr 2026 16:26:47 +0200 Subject: [PATCH] Remove `ComparisonNode` from #3540 that is impl in #3866 --- .../Editor/Surface/Archetypes/Comparisons.cs | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/Source/Editor/Surface/Archetypes/Comparisons.cs b/Source/Editor/Surface/Archetypes/Comparisons.cs index 96a877e32..32baadc1c 100644 --- a/Source/Editor/Surface/Archetypes/Comparisons.cs +++ b/Source/Editor/Surface/Archetypes/Comparisons.cs @@ -20,7 +20,6 @@ namespace FlaxEditor.Surface.Archetypes { TypeID = id, Title = title, - Create = (id, context, arch, groupArch) => new ComparisonNode(id, context, arch, groupArch), Description = desc, Flags = NodeFlags.AllGraphs, AlternativeTitles = altTitles, @@ -45,28 +44,6 @@ namespace FlaxEditor.Surface.Archetypes }; } - private class ComparisonNode : SurfaceNode - { - public ComparisonNode(uint id, VisjectSurfaceContext context, NodeArchetype nodeArch, GroupArchetype groupArch) - : base(id, context, nodeArch, groupArch) - { - } - - public override void OnSurfaceLoaded(SurfaceNodeActions action) - { - base.OnSurfaceLoaded(action); - - ResizeAuto(); - } - - public override void ConnectionTick(Box box) - { - base.ConnectionTick(box); - - ResizeAuto(); - } - } - private class SwitchOnEnumNode : SurfaceNode { public SwitchOnEnumNode(uint id, VisjectSurfaceContext context, NodeArchetype nodeArch, GroupArchetype groupArch) @@ -204,7 +181,6 @@ namespace FlaxEditor.Surface.Archetypes { TypeID = 7, Title = "Switch On Bool", - Create = (id, context, arch, groupArch) => new ComparisonNode(id, context, arch, groupArch), AlternativeTitles = new[] { "if", "switch" }, Description = "Returns one of the input values based on the condition value", Flags = NodeFlags.AllGraphs,