Browse Source

Removed old comments

Tig 1 year ago
parent
commit
8a8666c724
2 changed files with 0 additions and 8 deletions
  1. 0 3
      Terminal.Gui/View/Layout/ViewLayout.cs
  2. 0 5
      Terminal.Gui/Views/Slider.cs

+ 0 - 3
Terminal.Gui/View/Layout/ViewLayout.cs

@@ -733,9 +733,6 @@ public partial class View
     /// </summary>
     /// </summary>
     internal virtual void OnLayoutComplete (LayoutEventArgs args) { LayoutComplete?.Invoke (this, args); }
     internal virtual void OnLayoutComplete (LayoutEventArgs args) { LayoutComplete?.Invoke (this, args); }
 
 
-    // BUGBUG: We need an API/event that is called from SetRelativeLayout instead of/in addition to 
-    // BUGBUG: OnLayoutStarted which is called from LayoutSubviews.
-
     /// <summary>
     /// <summary>
     ///     Raises the <see cref="LayoutStarted"/> event. Called from  <see cref="LayoutSubviews"/> before any subviews
     ///     Raises the <see cref="LayoutStarted"/> event. Called from  <see cref="LayoutSubviews"/> before any subviews
     ///     have been laid out.
     ///     have been laid out.

+ 0 - 5
Terminal.Gui/Views/Slider.cs

@@ -50,11 +50,6 @@ public class Slider<T> : View
         SetDefaultStyle ();
         SetDefaultStyle ();
         SetCommands ();
         SetCommands ();
 
 
-        SetContentSize ();
-
-        // BUGBUG: This should not be needed - Need to ensure SetRelativeLayout gets called during EndInit
-        Initialized += (s, e) => { SetContentSize (); };
-
         LayoutStarted += (s, e) => { SetContentSize (); };
         LayoutStarted += (s, e) => { SetContentSize (); };
     }
     }