From 0984a1a71611d2d6925d647c5d65baafcb16dca6 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Fri, 28 Mar 2014 06:09:24 +0100 Subject: [PATCH] Visual should not implement ILogical. --- Perspex/Visual.cs | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/Perspex/Visual.cs b/Perspex/Visual.cs index 832d5f6d00..1344e056fc 100644 --- a/Perspex/Visual.cs +++ b/Perspex/Visual.cs @@ -13,7 +13,7 @@ namespace Perspex using Perspex.Layout; using Perspex.Media; - public abstract class Visual : PerspexObject, IVisual, ILogical + public abstract class Visual : PerspexObject, IVisual { public static readonly ReadOnlyPerspexProperty ParentProperty = new ReadOnlyPerspexProperty(ParentPropertyRW); @@ -21,8 +21,6 @@ namespace Perspex internal static readonly PerspexProperty ParentPropertyRW = PerspexProperty.Register("Parent"); - private ILogical logicalParent; - private IVisual visualParent; public Rect Bounds @@ -37,30 +35,11 @@ namespace Perspex protected set { this.SetValue(ParentPropertyRW, value); } } - ILogical ILogical.LogicalParent - { - get - { - return this.logicalParent; - } - - set - { - this.logicalParent = value; - this.Parent = value as Control; - } - } - IEnumerable IVisual.ExistingVisualChildren { get { return Enumerable.Empty(); } } - IEnumerable ILogical.LogicalChildren - { - get { return new ILogical[0]; } - } - IEnumerable IVisual.VisualChildren { get { return Enumerable.Empty(); }