Remove unused code and merge conditions
MODIFY
WalletWasabi.Fluent/Controls/ResponsivePanel.cs
WalletWasabi.Fluent/Controls/ResponsivePanel.cs
@@ -162,17 +162,10 @@ namespace WalletWasabi.Fluent.Controls
throw new Exception($"The {nameof(ItemHeight)} can't be NaN and panel {nameof(height)} can't be infinity at same time.");
}
- if (double.IsNaN(aspectRatio))
- {
- if (height == 0 || double.IsInfinity(height))
+ if (double.IsNaN(aspectRatio) && (height == 0 || double.IsInfinity(height)))
{
aspectRatio = 1.0;
}
- // else
- // {
- // aspectRatio = Math.Min(height, width) / Math.Max(height, width);
- // }
- }
var totalColumns = 1;
var layoutIndex = 0;

Remove unused code and merge conditions