From 416ffffb943fbf75af88f28f8af731cb8e544987 Mon Sep 17 00:00:00 2001 From: careworry <167077904+careworry@users.noreply.github.com> Date: Fri, 19 Apr 2024 09:05:04 +0800 Subject: [PATCH] chore: remove repetitive words (#15427) Signed-off-by: careworry Co-authored-by: Max Katz --- src/Avalonia.Base/AvaloniaProperty.cs | 2 +- src/Avalonia.Base/Layout/Layoutable.cs | 2 +- src/Avalonia.Base/Media/TextFormatting/Unicode/BiDiAlgorithm.cs | 2 +- src/Avalonia.Base/PixelRect.cs | 2 +- src/Avalonia.Base/Utilities/BinarySearchExtension.cs | 2 +- src/Avalonia.Base/Utilities/SpringSolver.cs | 2 +- src/Avalonia.Controls/NativeControlHost.cs | 2 +- src/Avalonia.Controls/Platform/IPlatformLifetimeEventsImpl.cs | 2 +- .../Primitives/PopupPositioning/IPopupPositioner.cs | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Avalonia.Base/AvaloniaProperty.cs b/src/Avalonia.Base/AvaloniaProperty.cs index b096de26a1..f6d6e352c9 100644 --- a/src/Avalonia.Base/AvaloniaProperty.cs +++ b/src/Avalonia.Base/AvaloniaProperty.cs @@ -151,7 +151,7 @@ namespace Avalonia /// /// /// When a property changes, change notifications are sent to all property subscribers; - /// for example via the observable and and the + /// for example via the observable and the /// event. If this callback is set for a property, /// then it will be called before and after these notifications take place. The bool argument /// will be true before the property change notifications are sent and false afterwards. This diff --git a/src/Avalonia.Base/Layout/Layoutable.cs b/src/Avalonia.Base/Layout/Layoutable.cs index f64c26ddf8..b237c10e63 100644 --- a/src/Avalonia.Base/Layout/Layoutable.cs +++ b/src/Avalonia.Base/Layout/Layoutable.cs @@ -791,7 +791,7 @@ namespace Avalonia.Layout InvalidateMeasure(); // If any descendant had its measure/arrange invalidated while we were hidden, - // they will need to to be registered with the layout manager now that they + // they will need to be registered with the layout manager now that they // are again effectively visible. If IsEffectivelyVisible becomes an observable // property then we can piggy-pack on that; for the moment we do this manually. if (VisualRoot is ILayoutRoot layoutRoot) diff --git a/src/Avalonia.Base/Media/TextFormatting/Unicode/BiDiAlgorithm.cs b/src/Avalonia.Base/Media/TextFormatting/Unicode/BiDiAlgorithm.cs index f418d4e14a..1a04e783e4 100644 --- a/src/Avalonia.Base/Media/TextFormatting/Unicode/BiDiAlgorithm.cs +++ b/src/Avalonia.Base/Media/TextFormatting/Unicode/BiDiAlgorithm.cs @@ -1580,7 +1580,7 @@ namespace Avalonia.Media.TextFormatting.Unicode } /// - /// Check if a a directionality is neutral for rules N1 and N2 + /// Check if a directionality is neutral for rules N1 and N2 /// [MethodImpl(MethodImplOptions.AggressiveInlining)] private static bool IsNeutralClass(BidiClass direction) diff --git a/src/Avalonia.Base/PixelRect.cs b/src/Avalonia.Base/PixelRect.cs index 85ec1041c3..e777d52164 100644 --- a/src/Avalonia.Base/PixelRect.cs +++ b/src/Avalonia.Base/PixelRect.cs @@ -150,7 +150,7 @@ namespace Avalonia } /// - /// Determines whether a point in in the bounds of the rectangle. + /// Determines whether a point in the bounds of the rectangle. /// /// The point. /// true if the point is in the bounds of the rectangle; otherwise false. diff --git a/src/Avalonia.Base/Utilities/BinarySearchExtension.cs b/src/Avalonia.Base/Utilities/BinarySearchExtension.cs index defc9b1639..5c7e018861 100644 --- a/src/Avalonia.Base/Utilities/BinarySearchExtension.cs +++ b/src/Avalonia.Base/Utilities/BinarySearchExtension.cs @@ -44,7 +44,7 @@ namespace Avalonia.Utilities } /// - /// Performs a binary search on a a subset of an IReadOnlyList + /// Performs a binary search on a subset of an IReadOnlyList /// /// The list element type /// The list to be searched diff --git a/src/Avalonia.Base/Utilities/SpringSolver.cs b/src/Avalonia.Base/Utilities/SpringSolver.cs index b77b97fce9..a0a7ebe11f 100644 --- a/src/Avalonia.Base/Utilities/SpringSolver.cs +++ b/src/Avalonia.Base/Utilities/SpringSolver.cs @@ -84,7 +84,7 @@ internal struct SpringSolver /// /// /// - /// The the natural frequency of the system [rad/s]. + /// The natural frequency of the system [rad/s]. /// The damping ratio. /// public SpringSolver(double ωn, double zeta, double initialVelocity) diff --git a/src/Avalonia.Controls/NativeControlHost.cs b/src/Avalonia.Controls/NativeControlHost.cs index 7c6fac0f8d..3a49bcceb0 100644 --- a/src/Avalonia.Controls/NativeControlHost.cs +++ b/src/Avalonia.Controls/NativeControlHost.cs @@ -88,7 +88,7 @@ namespace Avalonia.Controls } // If there is no attachment, but the control exists, - // attempt to attach to to the current toplevel or destroy the control if it's incompatible + // attempt to attach to the current toplevel or destroy the control if it's incompatible if (_attachment == null && _nativeControlHandle != null) { if (_currentHost.IsCompatibleWith(_nativeControlHandle)) diff --git a/src/Avalonia.Controls/Platform/IPlatformLifetimeEventsImpl.cs b/src/Avalonia.Controls/Platform/IPlatformLifetimeEventsImpl.cs index d609dd94c8..886fb26235 100644 --- a/src/Avalonia.Controls/Platform/IPlatformLifetimeEventsImpl.cs +++ b/src/Avalonia.Controls/Platform/IPlatformLifetimeEventsImpl.cs @@ -11,7 +11,7 @@ namespace Avalonia.Platform /// Raised by the platform when a shutdown is requested. /// /// - /// Raised on on OSX via the Quit menu or right-clicking on the application icon and selecting Quit. + /// Raised on OSX via the Quit menu or right-clicking on the application icon and selecting Quit. /// event EventHandler? ShutdownRequested; } diff --git a/src/Avalonia.Controls/Primitives/PopupPositioning/IPopupPositioner.cs b/src/Avalonia.Controls/Primitives/PopupPositioning/IPopupPositioner.cs index 0ca1907565..31c1e6054a 100644 --- a/src/Avalonia.Controls/Primitives/PopupPositioning/IPopupPositioner.cs +++ b/src/Avalonia.Controls/Primitives/PopupPositioning/IPopupPositioner.cs @@ -56,7 +56,7 @@ namespace Avalonia.Controls.Primitives.PopupPositioning /// Provides positioning parameters to . /// /// - /// The IPopupPositioner provides a collection of rules for the placement of a a popup relative + /// The IPopupPositioner provides a collection of rules for the placement of a popup relative /// to its parent. Rules can be defined to ensure the popup remains within the visible area's /// borders, and to specify how the popup changes its position, such as sliding along an axis, /// or flipping around a rectangle. These positioner-created rules are constrained by the