Browse Source

Removed redundant method

Yoh Deadfall 5 years ago
parent
commit
feed5103ab
1 changed files with 0 additions and 15 deletions
  1. 0 15
      src/Avalonia.Controls/Primitives/SelectingItemsControl.cs

+ 0 - 15
src/Avalonia.Controls/Primitives/SelectingItemsControl.cs

@@ -848,21 +848,6 @@ namespace Avalonia.Controls.Primitives
             }
         }
 
-        /// <summary>
-        /// Sets an item container's 'selected' class or <see cref="ISelectable.IsSelected"/>.
-        /// </summary>
-        /// <param name="index">The index of the item.</param>
-        /// <param name="selected">Whether the item should be selected or deselected.</param>
-        private void MarkItemSelected(int index, bool selected)
-        {
-            var container = ItemContainerGenerator?.ContainerFromIndex(index);
-
-            if (container != null)
-            {
-                MarkContainerSelected(container, selected);
-            }
-        }
-
         private void UpdateContainerSelection()
         {
             if (Presenter?.Panel is IPanel panel)