From cd11db61e8b1368c2493d9b9e5b99fc8a92ba38d Mon Sep 17 00:00:00 2001 From: vitek-karas <10670590+vitek-karas@users.noreply.github.com> Date: Fri, 15 Dec 2023 02:35:46 -0800 Subject: [PATCH] Removes dead code from type conversion The removed code would only run if `converter` was not null. But in that case the if on line 166 would match and it would return from the method. So the removed code can only be reached if `converter` is null. --- .../src/Core/Xaml/TypeConversionExtensions.cs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/Controls/src/Core/Xaml/TypeConversionExtensions.cs b/src/Controls/src/Core/Xaml/TypeConversionExtensions.cs index aac944df0a3b..4cefb5e9cc84 100644 --- a/src/Controls/src/Core/Xaml/TypeConversionExtensions.cs +++ b/src/Controls/src/Core/Xaml/TypeConversionExtensions.cs @@ -172,19 +172,6 @@ internal static object ConvertTo(this object value, Type toType, Func