From 5d3486bba40a475ada0cbd81a8c219fa81136e80 Mon Sep 17 00:00:00 2001 From: ivandrofly Date: Wed, 29 Jul 2015 19:43:28 +0100 Subject: [PATCH] Remove redundant variable --- src/Logic/Subtitle.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Logic/Subtitle.cs b/src/Logic/Subtitle.cs index 6c1c89758..9b4766954 100644 --- a/src/Logic/Subtitle.cs +++ b/src/Logic/Subtitle.cs @@ -393,11 +393,9 @@ namespace Nikse.SubtitleEdit.Logic public void Renumber(int startNumber = 1) { - int i = startNumber; foreach (Paragraph p in _paragraphs) { - p.Number = i; - i++; + p.Number = startNumber++; } }