From: jpbruyere Date: Mon, 15 Feb 2016 09:21:01 +0000 (+0100) Subject: remove unused DrawingIsValid X-Git-Tag: v0.4~128 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=3c1dbdbbc58d38d45276e3147c3717d19a69adf2;p=jp%2Fcrow.git remove unused DrawingIsValid --- diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs index 1f07e922..171a8eaa 100644 --- a/src/GraphicObjects/GraphicObject.cs +++ b/src/GraphicObjects/GraphicObject.cs @@ -394,11 +394,6 @@ namespace Crow NotifyValueChanged ("Visible", _isVisible); } } - //TODO: only used in group, should be removed from base go object - [XmlIgnore]public virtual bool DrawingIsValid - { get { return bmp == null ? - false : - true; } } [XmlAttributeAttribute()][DefaultValue("0;0")] public virtual Size MaximumSize { get { return _maximumSize; } diff --git a/src/GraphicObjects/Group.cs b/src/GraphicObjects/Group.cs index e1e95579..486e07f9 100644 --- a/src/GraphicObjects/Group.cs +++ b/src/GraphicObjects/Group.cs @@ -89,17 +89,6 @@ namespace Crow } #region GraphicObject overrides - [XmlIgnore]public override bool DrawingIsValid { - get { - if (!base.DrawingIsValid) - return false; - foreach (GraphicObject g in children) { - if (!g.DrawingIsValid) - return false; - } - return true; - } - } public override void ResolveBindings () { base.ResolveBindings ();