From eec87213b9b34400025a82f7456b88640df32506 Mon Sep 17 00:00:00 2001 From: Benedikt Stebner Date: Tue, 1 Feb 2022 16:17:51 +0100 Subject: [PATCH] Remove duplicate WithTypeface helper --- .../Media/TextFormatting/GenericTextRunProperties.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Avalonia.Visuals/Media/TextFormatting/GenericTextRunProperties.cs b/src/Avalonia.Visuals/Media/TextFormatting/GenericTextRunProperties.cs index dfea16a66dd3..13d7b1164505 100644 --- a/src/Avalonia.Visuals/Media/TextFormatting/GenericTextRunProperties.cs +++ b/src/Avalonia.Visuals/Media/TextFormatting/GenericTextRunProperties.cs @@ -43,11 +43,5 @@ public GenericTextRunProperties(Typeface typeface, double fontRenderingEmSize = /// public override CultureInfo? CultureInfo { get; } - - internal GenericTextRunProperties WithTypeface(Typeface typeface) - { - return new GenericTextRunProperties(typeface, FontRenderingEmSize, TextDecorations, ForegroundBrush, - BackgroundBrush, BaselineAlignment, CultureInfo); - } } }