From 228bfbfdf8b8112f58e4771b4ceabeffb5093bff Mon Sep 17 00:00:00 2001 From: Jumar Macato Date: Thu, 30 May 2019 01:34:45 +0800 Subject: [PATCH] Remove IAddChild and its interface implementations --- src/Avalonia.Controls/Grid.cs | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/src/Avalonia.Controls/Grid.cs b/src/Avalonia.Controls/Grid.cs index b0d028b913..b8c4897287 100644 --- a/src/Avalonia.Controls/Grid.cs +++ b/src/Avalonia.Controls/Grid.cs @@ -14,7 +14,7 @@ namespace Avalonia.Controls /// /// Grid /// - public class Grid : Panel, IAddChild + public class Grid : Panel { //------------------------------------------------------ // @@ -26,7 +26,6 @@ namespace Avalonia.Controls static Grid() { - ControlsTraceLogger.AddControl(TelemetryControls.Grid); } /// @@ -47,33 +46,6 @@ namespace Avalonia.Controls #region Public Methods - /// - /// - /// - void IAddChild.AddChild(object value) - { - if (value == null) - { - throw new ArgumentNullException("value"); - } - - UIElement cell = value as UIElement; - if (cell != null) - { - Children.Add(cell); - return; - } - - throw (new ArgumentException(SR.Get(SRID.Grid_UnexpectedParameterType, value.GetType(), typeof(UIElement)), "value")); - } - - /// - /// - /// - void IAddChild.AddText(string text) - { - XamlSerializerUtil.ThrowIfNonWhiteSpaceInAddText(text, this); - } /// ///