From 79f840d22586d394d3c98ab944e6e1949b071ea1 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Fri, 28 Mar 2014 05:48:20 +0100 Subject: [PATCH] Removed the DeferChanges stuff for now. --- Perspex/Controls/Control.cs | 6 +----- Perspex/PerspexObject.cs | 33 --------------------------------- 2 files changed, 1 insertion(+), 38 deletions(-) diff --git a/Perspex/Controls/Control.cs b/Perspex/Controls/Control.cs index e6958a667b..f376edcb49 100644 --- a/Perspex/Controls/Control.cs +++ b/Perspex/Controls/Control.cs @@ -74,8 +74,6 @@ namespace Perspex.Controls public Control() { this.classes = new Classes(); - this.classes.BeforeChanged.Subscribe(x => this.BeginDeferChanges()); - this.classes.AfterChanged.Subscribe(x => this.EndDeferChanges()); this.GetObservable(IsMouseOverProperty).Subscribe(x => { @@ -143,7 +141,7 @@ namespace Perspex.Controls public Classes Classes { get - { + { return this.classes; } @@ -151,10 +149,8 @@ namespace Perspex.Controls { if (this.classes != value) { - this.BeginDeferChanges(); this.classes.Clear(); this.classes.Add(value); - this.EndDeferChanges(); } } } diff --git a/Perspex/PerspexObject.cs b/Perspex/PerspexObject.cs index 53ae51dc6f..f078dd9309 100644 --- a/Perspex/PerspexObject.cs +++ b/Perspex/PerspexObject.cs @@ -123,39 +123,6 @@ namespace Perspex } } - /// - /// Defers property change notifications until is called. - /// - public void BeginDeferChanges() - { - //foreach (PriorityValue v in this.values.Values) - //{ - // v.BeginDeferChanges(); - //} - - //this.Log().Debug(string.Format( - // "Defer style changes on {0} (#{1:x8})", - // this.GetType().Name, - // this.GetHashCode())); - } - - /// - /// Ends the defer of property change notifications initiated by a previous call - /// to . - /// - public void EndDeferChanges() - { - //foreach (PriorityValue v in this.values.Values) - //{ - // v.EndDeferChanges(); - //} - - //this.Log().Debug(string.Format( - // "End defer style changes on {0} (#{1:x8})", - // this.GetType().Name, - // this.GetHashCode())); - } - /// /// Gets all s registered on a type. ///