Remove unused subgroup heading implementation

This commit is contained in:
John Lewin 2018-04-13 20:19:54 -07:00
parent c6b71e5890
commit 40918afe82

View file

@ -158,7 +158,6 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
private PrinterConfig printer;
private SettingsContext settingsContext;
private bool isPrimarySettingsView;
private bool showSubGroupHeadings = false;
private SearchInputBox searchPanel;
private int groupPanelCount = 0;
@ -454,17 +453,6 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
var subGroupPanel = this.AddSettingRowsForSubgroup(subGroup);
if (subGroupPanel != null)
{
if (showSubGroupHeadings)
{
var headingColor = theme.Colors.PrimaryTextColor.AdjustLightness(theme.Colors.IsDarkTheme ? 0.5 : 2.8).ToColor();
// Section heading
groupPanel.AddChild(new TextWidget(" " + subGroup.Name.Localize(), textColor: headingColor, pointSize: theme.FontSize10)
{
Margin = new BorderDouble(left: 8, top: 6, bottom: 4),
});
}
groupPanel.AddChild(subGroupPanel);
}
}