Remove dead code

This commit is contained in:
John Lewin 2018-01-14 10:32:07 -08:00
parent 5e4184217e
commit 80ae5d9bef

View file

@ -70,8 +70,6 @@ namespace MatterHackers.MatterControl.CustomWidgets
var linkButtonFactory = ApplicationController.Instance.Theme.LinkButtonFactory;
var theme = ApplicationController.Instance.Theme;
bool haveFilterRunning = !string.IsNullOrEmpty(currentContainer.KeywordFilter);
this.CloseAllChildren();
var upbutton = theme.ButtonFactory.GenerateIconButton(AggContext.StaticData.LoadIcon(Path.Combine("FileDialog", "up_folder_20.png"), IconColor.Theme));
@ -122,25 +120,6 @@ namespace MatterHackers.MatterControl.CustomWidgets
firstItem = false;
}
if (haveFilterRunning)
{
// Add separator ;
this.CreateSeparator(theme);
Button searchResultsButton = null;
if (UserSettings.Instance.IsTouchScreen)
{
searchResultsButton = buttonFactory.Generate("Search Results".Localize(), AggContext.StaticData.LoadIcon("icon_search_32x32.png", IconColor.Theme));
}
else
{
searchResultsButton = buttonFactory.Generate("Search Results".Localize(), AggContext.StaticData.LoadIcon("icon_search_24x24.png", IconColor.Theme));
}
searchResultsButton.Name = "Bread Crumb Button " + "Search Results";
searchResultsButton.Margin = new BorderDouble(right: 5);
this.AddChild(searchResultsButton);
}
// while all the buttons don't fit in the control
if (this.Parent != null
&& this.Width > 0