diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-09-18 19:33:21 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-09-18 19:33:21 -0400 |
| commit | 18a909797fe1a8d8005841582ed01e91c31509dd (patch) | |
| tree | 7f3971a66d5d1b3d29f01f10e9e56dfa04ef5c4f /MediaBrowser.Controller/Entities/IndexFolder.cs | |
| parent | 2ccd7d3e774120b2d25818fdfa97da54a8e8ce00 (diff) | |
hide concurrent dictionary from folder subclasses
Diffstat (limited to 'MediaBrowser.Controller/Entities/IndexFolder.cs')
| -rw-r--r-- | MediaBrowser.Controller/Entities/IndexFolder.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/MediaBrowser.Controller/Entities/IndexFolder.cs b/MediaBrowser.Controller/Entities/IndexFolder.cs index 6b88ea1fc..57e4a35d3 100644 --- a/MediaBrowser.Controller/Entities/IndexFolder.cs +++ b/MediaBrowser.Controller/Entities/IndexFolder.cs @@ -1,7 +1,6 @@ using MediaBrowser.Common.Extensions; using MediaBrowser.Model.Entities; using MoreLinq; -using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; @@ -111,7 +110,7 @@ namespace MediaBrowser.Controller.Entities /// Override to return the children defined to us when we were created /// </summary> /// <value>The actual children.</value> - protected override ConcurrentDictionary<Guid,BaseItem> LoadChildren() + protected override IEnumerable<BaseItem> LoadChildren() { var originalChildSource = ChildSource.ToList(); @@ -136,7 +135,7 @@ namespace MediaBrowser.Controller.Entities // Now - since we built the index grouping from the bottom up - we now need to properly set Parents from the top down SetParents(this, kids.OfType<IndexFolder>()); - return new ConcurrentDictionary<Guid, BaseItem>(kids.DistinctBy(i => i.Id).ToDictionary(i => i.Id)); + return kids.DistinctBy(i => i.Id); } /// <summary> |
