BaseItem: remove unused function
This commit is contained in:
parent
53209830e7
commit
7fdc0e3c3d
|
@ -77,11 +77,6 @@ namespace MediaBrowser.Controller.Channels
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool IsAllowTagFilterEnforced()
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static bool IsChannelVisible(BaseItem channelItem, User user)
|
internal static bool IsChannelVisible(BaseItem channelItem, User user)
|
||||||
{
|
{
|
||||||
var channel = ChannelManager.GetChannel(channelItem.ChannelId.ToString(string.Empty));
|
var channel = ChannelManager.GetChannel(channelItem.ChannelId.ToString(string.Empty));
|
||||||
|
|
|
@ -878,10 +878,7 @@ namespace MediaBrowser.Controller.Entities
|
||||||
return CanDownload() && IsAuthorizedToDownload(user);
|
return CanDownload() && IsAuthorizedToDownload(user);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <inheritdoc />
|
||||||
/// Returns a <see cref="string" /> that represents this instance.
|
|
||||||
/// </summary>
|
|
||||||
/// <returns>A <see cref="string" /> that represents this instance.</returns>
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
return Name;
|
return Name;
|
||||||
|
@ -1595,23 +1592,6 @@ namespace MediaBrowser.Controller.Entities
|
||||||
return value.Value <= maxAllowedRating.Value;
|
return 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()
|
public int? GetInheritedParentalRatingValue()
|
||||||
{
|
{
|
||||||
var rating = CustomRatingForComparison;
|
var rating = CustomRatingForComparison;
|
||||||
|
@ -1652,11 +1632,6 @@ namespace MediaBrowser.Controller.Entities
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual bool IsAllowTagFilterEnforced()
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual UnratedItem GetBlockUnratedType()
|
public virtual UnratedItem GetBlockUnratedType()
|
||||||
{
|
{
|
||||||
if (SourceType == SourceType.Channel)
|
if (SourceType == SourceType.Channel)
|
||||||
|
|
|
@ -189,21 +189,6 @@ namespace MediaBrowser.Controller.Entities
|
||||||
return baseResult;
|
return baseResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool IsAllowTagFilterEnforced()
|
|
||||||
{
|
|
||||||
if (this is ICollectionFolder)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this is UserView)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Adds the child.
|
/// Adds the child.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user