diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-03-31 13:39:28 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-03-31 13:39:28 -0400 |
| commit | 9f06eb781f5992496a7b1a59fb55b0aa6520261f (patch) | |
| tree | 0ed3bb79646b6495eaa16214a71f87ac18fdf435 /MediaBrowser.Controller/Entities/BaseItem.cs | |
| parent | b7c3bc592f4525428df1ac86d57ffb340a001dc6 (diff) | |
fixes #97 and creates a library dictionary cache to avoid FindById recursion
Diffstat (limited to 'MediaBrowser.Controller/Entities/BaseItem.cs')
| -rw-r--r-- | MediaBrowser.Controller/Entities/BaseItem.cs | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs index 474d14ee1..d30f11f7d 100644 --- a/MediaBrowser.Controller/Entities/BaseItem.cs +++ b/MediaBrowser.Controller/Entities/BaseItem.cs @@ -951,33 +951,6 @@ namespace MediaBrowser.Controller.Entities } /// <summary> - /// Finds an item by ID, recursively - /// </summary> - /// <param name="id">The id.</param> - /// <param name="user">The user.</param> - /// <returns>BaseItem.</returns> - /// <exception cref="System.ArgumentNullException">id</exception> - public virtual BaseItem FindItemById(Guid id, User user) - { - if (id == Guid.Empty) - { - throw new ArgumentNullException("id"); - } - - if (Id == id) - { - return this; - } - - if (LocalTrailers != null) - { - return LocalTrailers.FirstOrDefault(i => i.Id == id); - } - - return null; - } - - /// <summary> /// Finds the particular item by searching through our parents and, if not found there, loading from repo /// </summary> /// <param name="id">The id.</param> |
