From a0e7d5e9c890876c6e915bbfa1090984b15f19f1 Mon Sep 17 00:00:00 2001 From: Igor Velikorossov Date: Fri, 23 Apr 2021 13:27:42 +1000 Subject: [PATCH] Remove unused var, was used prior to #2157 --- .../Windows/Forms/Design/FormDocumentDesigner.cs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/System.Windows.Forms.Design/src/System/Windows/Forms/Design/FormDocumentDesigner.cs b/src/System.Windows.Forms.Design/src/System/Windows/Forms/Design/FormDocumentDesigner.cs index 29fe6cca701..2de473b92a5 100644 --- a/src/System.Windows.Forms.Design/src/System/Windows/Forms/Design/FormDocumentDesigner.cs +++ b/src/System.Windows.Forms.Design/src/System/Windows/Forms/Design/FormDocumentDesigner.cs @@ -19,7 +19,6 @@ namespace System.Windows.Forms.Design internal class FormDocumentDesigner : DocumentDesigner { private Size _autoScaleBaseSize = Size.Empty; - private bool _inAutoscale; private bool _initializing; private bool _autoSize; private ToolStripAdornerWindowService _toolStripAdornerWindowService; @@ -264,15 +263,7 @@ private void ApplyAutoScaling(SizeF baseVar, Form form) float percY = ((float)newVar.Height) / ((float)baseVar.Height); float percX = ((float)newVar.Width) / ((float)baseVar.Width); - try - { - _inAutoscale = true; - form.Scale(percX, percY); - } - finally - { - _inAutoscale = false; - } + form.Scale(percX, percY); } }