From 54aa51c653da9e4355ad274d5be54a5f6fbf0c78 Mon Sep 17 00:00:00 2001 From: kingces95 Date: Fri, 9 Feb 2018 02:35:18 -0800 Subject: [PATCH] Remove dead code (#1849) --- Xamarin.Forms.Platform.Android/AppCompat/SwitchRenderer.cs | 2 -- Xamarin.Forms.Platform.Android/Renderers/SwitchRenderer.cs | 2 -- 2 files changed, 4 deletions(-) diff --git a/Xamarin.Forms.Platform.Android/AppCompat/SwitchRenderer.cs b/Xamarin.Forms.Platform.Android/AppCompat/SwitchRenderer.cs index 07a92fb35..453c39df9 100644 --- a/Xamarin.Forms.Platform.Android/AppCompat/SwitchRenderer.cs +++ b/Xamarin.Forms.Platform.Android/AppCompat/SwitchRenderer.cs @@ -34,8 +34,6 @@ namespace Xamarin.Forms.Platform.Android.AppCompat int width = widthConstraint; if (widthConstraint <= 0) width = (int)Context.GetThemeAttributeDp(global::Android.Resource.Attribute.SwitchMinWidth); - else if (widthConstraint <= 0) - width = 100; sizeConstraint = new SizeRequest(new Size(width, sizeConstraint.Request.Height), new Size(width, sizeConstraint.Minimum.Height)); } diff --git a/Xamarin.Forms.Platform.Android/Renderers/SwitchRenderer.cs b/Xamarin.Forms.Platform.Android/Renderers/SwitchRenderer.cs index f68e535a1..a3da4e508 100644 --- a/Xamarin.Forms.Platform.Android/Renderers/SwitchRenderer.cs +++ b/Xamarin.Forms.Platform.Android/Renderers/SwitchRenderer.cs @@ -32,8 +32,6 @@ namespace Xamarin.Forms.Platform.Android int width = widthConstraint; if (widthConstraint <= 0) width = (int)Context.GetThemeAttributeDp(global::Android.Resource.Attribute.SwitchMinWidth); - else if (widthConstraint <= 0) - width = 100; sizeConstraint = new SizeRequest(new Size(width, sizeConstraint.Request.Height), new Size(width, sizeConstraint.Minimum.Height)); }