diff options
| author | LukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com> | 2012-07-12 13:09:35 -0400 |
|---|---|---|
| committer | LukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com> | 2012-07-12 13:09:35 -0400 |
| commit | 4c9f77eead7148bb451de2a3f261bb3a61efe321 (patch) | |
| tree | f1ec5b80698df2128478d79698bb3401edb33099 /MediaBrowser.Controller/Library | |
| parent | b50f78e5da6f3fdfc59e577ca61b88771da7d211 (diff) | |
Added some resolver improvements
Diffstat (limited to 'MediaBrowser.Controller/Library')
| -rw-r--r-- | MediaBrowser.Controller/Library/ItemDataCache.cs | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/MediaBrowser.Controller/Library/ItemDataCache.cs b/MediaBrowser.Controller/Library/ItemDataCache.cs deleted file mode 100644 index 35b3551a9..000000000 --- a/MediaBrowser.Controller/Library/ItemDataCache.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System.Collections.Generic;
-using MediaBrowser.Model.Entities;
-
-namespace MediaBrowser.Controller.Library
-{
- public class ItemDataCache
- {
- private Dictionary<string, object> Data = new Dictionary<string, object>();
-
- public void SetValue<T>(BaseItem item, string propertyName, T value)
- {
- Data[GetKey(item, propertyName)] = value;
- }
-
- public T GetValue<T>(BaseItem item, string propertyName)
- {
- string key = GetKey(item, propertyName);
-
- if (Data.ContainsKey(key))
- {
- return (T)Data[key];
- }
-
- return default(T);
- }
-
- private string GetKey(BaseItem item, string propertyName)
- {
- return item.Id.ToString() + "-" + propertyName;
- }
- }
-}
|
