]> O.S.I.I.S - jp/crow.git/commitdiff
remove unused DrawingIsValid
authorjpbruyere <jp.bruyere@hotmail.com>
Mon, 15 Feb 2016 09:21:01 +0000 (10:21 +0100)
committerjpbruyere <jp.bruyere@hotmail.com>
Mon, 15 Feb 2016 09:21:01 +0000 (10:21 +0100)
src/GraphicObjects/GraphicObject.cs
src/GraphicObjects/Group.cs

index 1f07e9223c4a9b2f0b59be605d18774f527e01d7..171a8eaa3313354e6a45025c6b33764533da87e2 100644 (file)
@@ -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; }
index e1e955793c0f809e09fbe0f0c65cbb8cc9b1cbf6..486e07f9ac605e1edc97bae290b81cacf82a2b25 100644 (file)
@@ -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 ();