Merge pull request #157 from ivandrofly/patch-18

Refact: Unneeded check
This commit is contained in:
Nikolaj Olsson 2014-06-17 21:26:10 +02:00
commit 5b28bd9f3a

View File

@ -1961,8 +1961,6 @@ namespace Nikse.SubtitleEdit.Forms
string oldText = p.Text;
Match match = ReAfterLowercaseLetter.Match(p.Text);
if (match.Success)
{
while (match.Success)
{
if (!(match.Index > 1 && p.Text.Substring(match.Index - 1, 2) == "Mc")) // irish names, McDonalds etc.
@ -1983,12 +1981,9 @@ namespace Nikse.SubtitleEdit.Forms
}
match = match.NextMatch();
}
}
StripableText st = new StripableText(p.Text);
match = ReBeforeLowercaseLetter.Match(st.StrippedText);
if (match.Success)
{
while (match.Success)
{
string word = GetWholeWord(st.StrippedText, match.Index);
@ -2093,7 +2088,6 @@ namespace Nikse.SubtitleEdit.Forms
}
match = match.NextMatch();
}
}
//isLineContinuation = p.Text.Length > 0 && Utilities.GetLetters(true, true, false).Contains(p.Text[p.Text.Length - 1].ToString());
}