Skip to content

Commit

Permalink
OKEGui/OKEGui/Worker/ExecuteTaskService.cs: remove unused code
Browse files Browse the repository at this point in the history
Signed-off-by: akarin <[email protected]>
  • Loading branch information
AkarinVS committed Jan 22, 2023
1 parent f1d507a commit 989a7fc
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions OKEGui/OKEGui/Worker/ExecuteTaskService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ private void WorkerDoWork(object sender, DoWorkEventArgs e)
File.Delete(timeCodeFile);
try
{

timecode.SaveTimecode(timeCodeFile);
}
catch (IOException ex)
Expand All @@ -284,13 +283,8 @@ private void WorkerDoWork(object sender, DoWorkEventArgs e)
task.ChapterStatus = ChapterStatus.Added;
}

FileInfo inputChapterFile =
new FileInfo(task.ChapterFileName);
FileInfo outputChapterFile =
new FileInfo(Path.ChangeExtension(task.Taskfile.WorkingPathPrefix, ".txt"));
if (inputChapterFile.Exists && !File.Exists(outputChapterFile.FullName))
File.Copy(inputChapterFile.FullName, outputChapterFile.FullName);

chapterInfo.Save(ChapterTypeEnum.OGM, outputChapterFile.FullName);
outputChapterFile.Refresh();
OKEFile chapterFile = new OKEFile(outputChapterFile);
Expand Down

0 comments on commit 989a7fc

Please sign in to comment.