diff options
| author | Bond-009 <bond.009@outlook.com> | 2021-07-12 23:53:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-12 23:53:52 +0200 |
| commit | b20977dc25a6aa8d7e5fe544fbc7400611a6939b (patch) | |
| tree | 078ef9ec54b3afe3c30b719c98a81af8ea008690 /MediaBrowser.Controller/Entities/BaseItem.cs | |
| parent | 34fba1a78750dc99f6b9755c5a0dc4a34bf828d7 (diff) | |
| parent | 915141f196d6ec20f3f0a398d9b328f25ae71241 (diff) | |
Merge pull request #6289 from Bond-009/warn33
Fix some warnings
Diffstat (limited to 'MediaBrowser.Controller/Entities/BaseItem.cs')
| -rw-r--r-- | MediaBrowser.Controller/Entities/BaseItem.cs | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs index e5be5421a..23b97f70c 100644 --- a/MediaBrowser.Controller/Entities/BaseItem.cs +++ b/MediaBrowser.Controller/Entities/BaseItem.cs @@ -771,19 +771,6 @@ namespace MediaBrowser.Controller.Entities [JsonIgnore] public Guid ParentId { get; set; } - /// <summary> - /// Gets or sets the parent. - /// </summary> - /// <value>The parent.</value> - [JsonIgnore] - public Folder Parent - { - get => GetParent() as Folder; - set - { - } - } - public void SetParent(Folder parent) { ParentId = parent == null ? Guid.Empty : parent.Id; @@ -822,8 +809,7 @@ namespace MediaBrowser.Controller.Entities { foreach (var parent in GetParents()) { - var item = parent as T; - if (item != null) + if (parent is T item) { return item; } |
