From 780c4a1686842e6aecbc60540c429e7cce9fdc2e Mon Sep 17 00:00:00 2001 From: Nikolaj Olsson Date: Sun, 25 Apr 2021 05:43:50 +0200 Subject: [PATCH] Remove unused method --- src/libse/SubtitleFormats/SubtitleFormat.cs | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/libse/SubtitleFormats/SubtitleFormat.cs b/src/libse/SubtitleFormats/SubtitleFormat.cs index a09712087..23424ae9b 100644 --- a/src/libse/SubtitleFormats/SubtitleFormat.cs +++ b/src/libse/SubtitleFormats/SubtitleFormat.cs @@ -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 GetOrderedFormatsList(IList unorderedFormatsList) { IEnumerable newSelectedFormats = new[] { Utilities.GetSubtitleFormatByFriendlyName(Configuration.Settings.General.DefaultSubtitleFormat) };