Skip to content

Commit

Permalink
Remove unused var, was used prior to dotnet#2157
Browse files Browse the repository at this point in the history
  • Loading branch information
RussKie committed May 14, 2021
1 parent 841bbfe commit a0e7d5e
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
}

Expand Down

0 comments on commit a0e7d5e

Please sign in to comment.