Remove unused property/helper

This commit is contained in:
John Lewin 2017-07-05 13:56:26 -07:00
parent 0784900080
commit a1fade3716
2 changed files with 6 additions and 24 deletions

View file

@ -92,17 +92,6 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
return null;
}
public GuiWidget GenerateHorizontalRule()
{
return new GuiWidget()
{
Height = 1,
Margin = new BorderDouble(0, 1, 0, 3),
HAnchor = HAnchor.ParentLeftRight,
BackgroundColor = new RGBA_Bytes(255, 255, 255, 200)
};
}
private void CheckSettingChanged(object sender, EventArgs e)
{
StringEventArgs stringEvent = e as StringEventArgs;
@ -118,8 +107,6 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
}
}
public virtual bool InEditMode { get { return false; } }
private void RecreateBed()
{
double buildHeight = ActiveSliceSettings.Instance.GetValue<double>(SettingsKey.build_height);

View file

@ -547,17 +547,14 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
set
{
if (InEditMode)
{
// <IObject3D>
dragDropSource = value;
// <IObject3D>
dragDropSource = value;
// Clear the DragSourceModel - <ILibraryItem>
DragSourceModel = null;
// Clear the DragSourceModel - <ILibraryItem>
DragSourceModel = null;
// Suppress ui volumes when dragDropSource is not null
meshViewerWidget.SuppressUiVolumes = (dragDropSource != null);
}
// Suppress ui volumes when dragDropSource is not null
meshViewerWidget.SuppressUiVolumes = (dragDropSource != null);
}
}
@ -2242,8 +2239,6 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
}
}
public override bool InEditMode => true;
public Vector2 DragSelectionStartPosition { get; private set; }
public bool DragSelectionInProgress { get; private set; }
public Vector2 DragSelectionEndPosition { get; private set; }