From daf9cec2b011dbf3e58ce102f1a4d24cd3c792a9 Mon Sep 17 00:00:00 2001 From: Sam Bent Date: Tue, 22 Sep 2020 17:46:37 -0700 Subject: [PATCH] remove useless Assert --- .../src/WpfGfx/core/resources/glyphrunslave.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/Microsoft.DotNet.Wpf/src/WpfGfx/core/resources/glyphrunslave.cpp b/src/Microsoft.DotNet.Wpf/src/WpfGfx/core/resources/glyphrunslave.cpp index 9edc9eaf4c6..7c81f299d53 100644 --- a/src/Microsoft.DotNet.Wpf/src/WpfGfx/core/resources/glyphrunslave.cpp +++ b/src/Microsoft.DotNet.Wpf/src/WpfGfx/core/resources/glyphrunslave.cpp @@ -1029,14 +1029,6 @@ CGlyphRunResource::GetDWriteRenderingMode(__in IDWriteFontFace *pIDWriteFontFace *pDWriteRenderingMode = DWRITE_RENDERING_MODE_CLEARTYPE_NATURAL; } } - else - { - // This assert is here for an equivalence check with .NET Framework - // when allowing DWrite to choose our rendering mode directly. - Assert((textRenderingMode == MilTextRenderingMode::Auto) - || ((textRenderingMode == MilTextRenderingMode::Aliased) - && !IsDisplayMeasured())); - } } } }