From a1fade3716a97ca8a8a67a303e502e563a7e927d Mon Sep 17 00:00:00 2001 From: John Lewin Date: Wed, 5 Jul 2017 13:56:26 -0700 Subject: [PATCH] Remove unused property/helper --- .../BaseClasses/PartPreview3DWidget.cs | 13 ------------- PartPreviewWindow/View3D/View3DWidget.cs | 17 ++++++----------- 2 files changed, 6 insertions(+), 24 deletions(-) diff --git a/PartPreviewWindow/BaseClasses/PartPreview3DWidget.cs b/PartPreviewWindow/BaseClasses/PartPreview3DWidget.cs index f989b1c91..4dada97e0 100644 --- a/PartPreviewWindow/BaseClasses/PartPreview3DWidget.cs +++ b/PartPreviewWindow/BaseClasses/PartPreview3DWidget.cs @@ -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(SettingsKey.build_height); diff --git a/PartPreviewWindow/View3D/View3DWidget.cs b/PartPreviewWindow/View3D/View3DWidget.cs index 7d9d43f02..a6b11a213 100644 --- a/PartPreviewWindow/View3D/View3DWidget.cs +++ b/PartPreviewWindow/View3D/View3DWidget.cs @@ -547,17 +547,14 @@ namespace MatterHackers.MatterControl.PartPreviewWindow set { - if (InEditMode) - { - // - dragDropSource = value; + // + dragDropSource = value; - // Clear the DragSourceModel - - DragSourceModel = null; + // Clear the DragSourceModel - + 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; }