From 1d211753c4e2ce0e4de3023cde4ea075f00786fa Mon Sep 17 00:00:00 2001 From: John Lewin Date: Sat, 9 Jun 2018 09:39:26 -0700 Subject: [PATCH] Reduce to minimal unique parameters --- DesignTools/PublicPropertyEditor.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/DesignTools/PublicPropertyEditor.cs b/DesignTools/PublicPropertyEditor.cs index bbe0234a6..72535d4b2 100644 --- a/DesignTools/PublicPropertyEditor.cs +++ b/DesignTools/PublicPropertyEditor.cs @@ -137,7 +137,7 @@ namespace MatterHackers.MatterControl.DesignTools // Create a field editor for each editable property detected via reflection foreach (var property in GetEditablePropreties(context.item)) { - AddPropertyEditor(this, view3DWidget, mainContainer, theme, undoBuffer, property, context); + AddPropertyEditor(view3DWidget, mainContainer, theme, undoBuffer, property, context); } // add in an Update button if applicable @@ -223,10 +223,8 @@ namespace MatterHackers.MatterControl.DesignTools .Select(p => new EditableProperty(p, item)); } - private static void AddPropertyEditor(PublicPropertyEditor publicPropertyEditor, - View3DWidget view3DWidget, FlowLayoutWidget editControlsContainer, ThemeConfig theme, - UndoBuffer undoBuffer, - EditableProperty property, PPEContext context) + private static void AddPropertyEditor(View3DWidget view3DWidget, FlowLayoutWidget editControlsContainer, ThemeConfig theme, + UndoBuffer undoBuffer, EditableProperty property, PPEContext context) { var rebuildable = property.Item as IPublicPropertyObject; var propertyGridModifier = property.Item as IPropertyGridModifier;