mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 03:33:18 +01:00
Remove unused IsTagFollowIndex method
Deleted the IsTagFollowIndex method from the EffectKaraoke form. This method was no longer being used in the project, making it redundant. This removal helps to clean up the code base and reduces the overall code complexity.
This commit is contained in:
parent
d335939bf7
commit
9ecf83149c
@ -172,31 +172,5 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
MakeAnimation();
|
||||
DialogResult = DialogResult.OK;
|
||||
}
|
||||
|
||||
public static bool IsTagFollowIndex(string text, int index)
|
||||
{
|
||||
string tag;
|
||||
// <i>, </i>, <font...>, </font>
|
||||
if (text.Length >= index + 7)
|
||||
{
|
||||
tag = text.Substring(index, 7);
|
||||
if (tag.StartsWith("<font", StringComparison.OrdinalIgnoreCase) || tag.StartsWith("</font", StringComparison.Ordinal))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if (text.Length >= index + 3)
|
||||
{
|
||||
tag = text.Substring(index, 3);
|
||||
var idx = 1;
|
||||
if ((tag[2] == '>' || tag[idx++] == '/') && (tag[idx] == 'i' || tag[idx] == 'I' || tag[idx] == 'b' || tag[idx] == 'B' || tag[idx] == 'u' || tag[idx] == 'U'))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user