Browse Source

Removed unused methods.

Steven Kirk 5 years ago
parent
commit
aaeda72aec
1 changed files with 0 additions and 25 deletions
  1. 0 25
      src/Avalonia.Controls/Primitives/SelectingItemsControl.cs

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

@@ -849,14 +849,6 @@ namespace Avalonia.Controls.Primitives
             }
         }
 
-        private void MarkContainersUnselected()
-        {
-            foreach (var container in ItemContainerGenerator.Containers)
-            {
-                MarkContainerSelected(container.ContainerControl, false);
-            }
-        }
-
         /// <summary>
         /// Sets an item container's 'selected' class or <see cref="ISelectable.IsSelected"/>.
         /// </summary>
@@ -872,23 +864,6 @@ namespace Avalonia.Controls.Primitives
             }
         }
 
-        /// <summary>
-        /// Sets an item container's 'selected' class or <see cref="ISelectable.IsSelected"/>.
-        /// </summary>
-        /// <param name="item">The item.</param>
-        /// <param name="selected">Whether the item should be selected or deselected.</param>
-        private int MarkItemSelected(object item, bool selected)
-        {
-            var index = IndexOf(Items, item);
-
-            if (index != -1)
-            {
-                MarkItemSelected(index, selected);
-            }
-
-            return index;
-        }
-
         private void UpdateContainerSelection()
         {
             if (Presenter?.Panel is IPanel panel)