diff --git a/Terminal.Gui/View/Layout/Dim.cs b/Terminal.Gui/View/Layout/Dim.cs index 1973f1f68..7802001c0 100644 --- a/Terminal.Gui/View/Layout/Dim.cs +++ b/Terminal.Gui/View/Layout/Dim.cs @@ -278,6 +278,12 @@ public abstract class Dim return Math.Max (GetAnchor (superviewContentSize - location), 0); } + /// + /// Diagnostics API to determine if this Dim object references other views. + /// + /// + internal virtual bool ReferencesOtherViews () { return false; } + #endregion virtual methods #region operators @@ -326,21 +332,6 @@ public abstract class Dim #endregion operators - #region overrides - - /// - /// Diagnostics API to determine if this Dim object references other views. - /// - /// - internal virtual bool ReferencesOtherViews () { return false; } - - /// - public override bool Equals (object? other) { return other is Dim abs && abs == this; } - - /// - public override int GetHashCode () { return GetAnchor (0).GetHashCode (); } - - #endregion overrides } /// diff --git a/Terminal.Gui/View/Layout/Pos.cs b/Terminal.Gui/View/Layout/Pos.cs index d73549a2b..9e4dc329e 100644 --- a/Terminal.Gui/View/Layout/Pos.cs +++ b/Terminal.Gui/View/Layout/Pos.cs @@ -385,16 +385,6 @@ public abstract class Pos #endregion operators - #region overrides - - /// - public override bool Equals (object other) { return other is Pos abs && abs == this; } - - /// Serves as the default hash function. - /// A hash code for the current object. - public override int GetHashCode () { return GetAnchor (0).GetHashCode (); } - - #endregion overrides } ///