mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-26 05:02:36 +01:00
Remove unused method
This commit is contained in:
parent
292d03c03f
commit
780c4a1686
@ -1,5 +1,4 @@
|
||||
using Nikse.SubtitleEdit.Core.Common;
|
||||
using Nikse.SubtitleEdit.Core.Interfaces;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
@ -663,22 +662,6 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats
|
||||
return defaultFormat;
|
||||
}
|
||||
|
||||
public static SubtitleFormat BinaryPersistableFromName(string formatName, bool batchMode)
|
||||
{
|
||||
string trimmedFormatName = formatName.Trim();
|
||||
foreach (var format in GetBinaryFormats(batchMode))
|
||||
{
|
||||
if (format is IBinaryPersistableSubtitle &&
|
||||
format.Name.Trim().Equals(trimmedFormatName, StringComparison.OrdinalIgnoreCase) ||
|
||||
format.FriendlyName.Trim().Equals(trimmedFormatName, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return format;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
private static IList<SubtitleFormat> GetOrderedFormatsList(IList<SubtitleFormat> unorderedFormatsList)
|
||||
{
|
||||
IEnumerable<SubtitleFormat> newSelectedFormats = new[] { Utilities.GetSubtitleFormatByFriendlyName(Configuration.Settings.General.DefaultSubtitleFormat) };
|
||||
|
Loading…
Reference in New Issue
Block a user