mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-21 13:10:45 +02:00
Remove some dead code
This commit is contained in:
parent
427688a0a0
commit
4a30fee40d
|
@ -134,10 +134,6 @@ namespace MediaBrowser.Model.Entities
|
||||||
|
|
||||||
if (Type == MediaStreamType.Subtitle)
|
if (Type == MediaStreamType.Subtitle)
|
||||||
{
|
{
|
||||||
//if (!string.IsNullOrEmpty(Title))
|
|
||||||
//{
|
|
||||||
// return AddLanguageIfNeeded(Title);
|
|
||||||
//}
|
|
||||||
|
|
||||||
var attributes = new List<string>();
|
var attributes = new List<string>();
|
||||||
|
|
||||||
|
@ -234,30 +230,6 @@ namespace MediaBrowser.Model.Entities
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
private string AddLanguageIfNeeded(string title)
|
|
||||||
{
|
|
||||||
if (!string.IsNullOrEmpty(Language) &&
|
|
||||||
!string.Equals(Language, "und", StringComparison.OrdinalIgnoreCase) &&
|
|
||||||
!IsLanguageInTitle(title, Language))
|
|
||||||
{
|
|
||||||
title = StringHelper.FirstToUpper(Language) + " " + title;
|
|
||||||
}
|
|
||||||
|
|
||||||
return title;
|
|
||||||
}
|
|
||||||
|
|
||||||
private bool IsLanguageInTitle(string title, string language)
|
|
||||||
{
|
|
||||||
if (title.IndexOf(Language, StringComparison.OrdinalIgnoreCase) != -1)
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
public string NalLengthSize { get; set; }
|
public string NalLengthSize { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in a new issue