diff --git a/src/Forms/VobSubNOcrCharacterInspect.cs b/src/Forms/VobSubNOcrCharacterInspect.cs index 2b2581729..ed580c23a 100644 --- a/src/Forms/VobSubNOcrCharacterInspect.cs +++ b/src/Forms/VobSubNOcrCharacterInspect.cs @@ -18,7 +18,6 @@ namespace Nikse.SubtitleEdit.Forms private Bitmap _bitmap; private Bitmap _bitmap2; private double _zoomFactor = 3.0; - private double _unItalicFactor; public VobSubNOcrCharacterInspect() { @@ -31,7 +30,7 @@ namespace Nikse.SubtitleEdit.Forms DialogResult = DialogResult.Cancel; } - internal void Initialize(Bitmap bitmap, int pixelsIsSpace, bool rightToLeft, NOcrDb nOcrDb, VobSubOcr vobSubOcr, double unItalicFactor) + internal void Initialize(Bitmap bitmap, int pixelsIsSpace, bool rightToLeft, NOcrDb nOcrDb, VobSubOcr vobSubOcr) { _bitmap = bitmap; var nbmp = new NikseBitmap(bitmap); @@ -41,7 +40,6 @@ namespace Nikse.SubtitleEdit.Forms _nocrChars = nOcrDb.OcrCharacters; _matchList = new List(); _vobSubOcr = vobSubOcr; - _unItalicFactor = unItalicFactor; int minLineHeight = 6; _imageList = NikseBitmapImageSplitter.SplitBitmapToLettersNew(nbmp, pixelsIsSpace, rightToLeft, Configuration.Settings.VobSubOcr.TopToBottom, minLineHeight); diff --git a/src/Forms/VobSubOcr.cs b/src/Forms/VobSubOcr.cs index 4132c52f5..51053e64f 100644 --- a/src/Forms/VobSubOcr.cs +++ b/src/Forms/VobSubOcr.cs @@ -8133,7 +8133,7 @@ namespace Nikse.SubtitleEdit.Forms var inspect = new VobSubNOcrCharacterInspect(); bool oldCorrect = checkBoxNOcrCorrect.Checked; checkBoxNOcrCorrect.Checked = false; - inspect.Initialize(bitmap, (int)numericUpDownNumberOfPixelsIsSpaceNOCR.Value, checkBoxRightToLeft.Checked, _nOcrDb, this, _unItalicFactor); + inspect.Initialize(bitmap, (int)numericUpDownNumberOfPixelsIsSpaceNOCR.Value, checkBoxRightToLeft.Checked, _nOcrDb, this); if (inspect.ShowDialog(this) == DialogResult.OK) { Cursor = Cursors.WaitCursor; diff --git a/src/Logic/SubtitleFormats/ScenaristClosedCaptions.cs b/src/Logic/SubtitleFormats/ScenaristClosedCaptions.cs index 0d2469c40..a22215f15 100644 --- a/src/Logic/SubtitleFormats/ScenaristClosedCaptions.cs +++ b/src/Logic/SubtitleFormats/ScenaristClosedCaptions.cs @@ -711,7 +711,7 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats return sb.ToString(); } - private string ToSccText(string text, string language) + private static string ToSccText(string text, string language) { text = FixMax4LinesAndMax32CharsPerLine(text, language); //text = text.Replace("ã", "aã"); diff --git a/src/Logic/UknownFormatImporter.cs b/src/Logic/UknownFormatImporter.cs index d944bf8df..66fb71efd 100644 --- a/src/Logic/UknownFormatImporter.cs +++ b/src/Logic/UknownFormatImporter.cs @@ -461,7 +461,7 @@ namespace Nikse.SubtitleEdit.Logic return subtitle; } - private Subtitle ImportTimeCodesOnSameSeperateLine(string[] lines) + private static Subtitle ImportTimeCodesOnSameSeperateLine(string[] lines) { Paragraph p = null; var subtitle = new Subtitle();