From efb8fde1bb357b6213429c5cf95cddb91843fa03 Mon Sep 17 00:00:00 2001 From: Dan Walmsley Date: Thu, 31 May 2018 23:15:58 +0100 Subject: [PATCH] remove handling add case. --- src/Avalonia.Controls/Presenters/CarouselPresenter.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Avalonia.Controls/Presenters/CarouselPresenter.cs b/src/Avalonia.Controls/Presenters/CarouselPresenter.cs index 64417a0176..f62f146b2a 100644 --- a/src/Avalonia.Controls/Presenters/CarouselPresenter.cs +++ b/src/Avalonia.Controls/Presenters/CarouselPresenter.cs @@ -127,10 +127,6 @@ namespace Avalonia.Controls.Presenters } break; - case NotifyCollectionChangedAction.Add: - Panel.Children.InsertRange(e.NewStartingIndex, e.NewItems.OfType()); - break; - case NotifyCollectionChangedAction.Replace: if (!IsVirtualized) {