Remove unused method

This commit is contained in:
Nikolaj Olsson 2021-04-25 05:43:50 +02:00
parent 292d03c03f
commit 780c4a1686

View File

@ -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) };