The Free Software Media System - Server Backend & API
BaseItem: remove unused function
Bond_0097fdc0e3c3d65
diff --git a/MediaBrowser.Controller/Channels/Channel.cs b/MediaBrowser.Controller/Channels/Channel.csindex 85a99d62cc..94418683b2 100644--- a/MediaBrowser.Controller/Channels/Channel.cs+++ b/MediaBrowser.Controller/Channels/Channel.cs@@ -77,11 +77,6 @@ namespace MediaBrowser.Controller.Channelsreturn false;}- protected override bool IsAllowTagFilterEnforced()- {- return false;- }-internal static bool IsChannelVisible(BaseItem channelItem, User user){var channel = ChannelManager.GetChannel(channelItem.ChannelId.ToString(string.Empty));diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.csindex d993a15a90..2bb966d2c5 100644--- a/MediaBrowser.Controller/Entities/BaseItem.cs+++ b/MediaBrowser.Controller/Entities/BaseItem.cs@@ -878,10 +878,7 @@ namespace MediaBrowser.Controller.Entitiesreturn CanDownload() && IsAuthorizedToDownload(user);}- /// <summary>- /// Returns a <see cref="string" /> that represents this instance.- /// </summary>- /// <returns>A <see cref="string" /> that represents this instance.</returns>+ /// <inheritdoc />public override string ToString(){return Name;@@ -1595,23 +1592,6 @@ namespace MediaBrowser.Controller.Entitiesreturn value.Value <= maxAllowedRating.Value;}- public int? GetParentalRatingValue()- {- var rating = CustomRating;-- if (string.IsNullOrEmpty(rating))- {- rating = OfficialRating;- }-- if (string.IsNullOrEmpty(rating))- {- return null;- }-- return LocalizationManager.GetRatingLevel(rating);- }-public int? GetInheritedParentalRatingValue(){var rating = CustomRatingForComparison;@@ -1652,11 +1632,6 @@ namespace MediaBrowser.Controller.Entitiesreturn true;}- protected virtual bool IsAllowTagFilterEnforced()- {- return true;- }-public virtual UnratedItem GetBlockUnratedType(){if (SourceType == SourceType.Channel)diff --git a/MediaBrowser.Controller/Entities/Folder.cs b/MediaBrowser.Controller/Entities/Folder.csindex f9450ccb32..b6983b73ee 100644--- a/MediaBrowser.Controller/Entities/Folder.cs+++ b/MediaBrowser.Controller/Entities/Folder.cs@@ -189,21 +189,6 @@ namespace MediaBrowser.Controller.Entitiesreturn baseResult;}- protected override bool IsAllowTagFilterEnforced()- {- if (this is ICollectionFolder)- {- return false;- }-- if (this is UserView)- {- return false;- }-- return true;- }-/// <summary>/// Adds the child./// </summary>