Skip to content

Commit

Permalink
Removed TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoCoderMatrix86 committed Aug 26, 2024
1 parent b490653 commit efb987b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 15 deletions.
1 change: 0 additions & 1 deletion AudioCuesheetEditor/Extensions/SessionStateContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
//along with Foobar. If not, see
//<http: //www.gnu.org/licenses />.
using AudioCuesheetEditor.Model.AudioCuesheet;
using AudioCuesheetEditor.Model.AudioCuesheet.Import;
using AudioCuesheetEditor.Model.IO.Audio;
using AudioCuesheetEditor.Model.IO.Import;
using AudioCuesheetEditor.Model.Options;
Expand Down
4 changes: 1 addition & 3 deletions AudioCuesheetEditor/Pages/EditSections.razor
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,7 @@ along with Foobar. If not, see
switch (_sessionStateContainer.CurrentViewMode)
{
case ViewMode.ViewModeImport:
//TODO
// cuesheet = _sessionStateContainer.ImportCuesheet;
cuesheet = null;
cuesheet = _sessionStateContainer.ImportCuesheet;
break;
default:
cuesheet = _sessionStateContainer.Cuesheet;
Expand Down
11 changes: 0 additions & 11 deletions AudioCuesheetEditor/Services/IO/ImportManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,23 +78,12 @@ public async Task<Dictionary<IFileEntry, ImportFileType>> ImportFilesAsync(IEnum
lines.Add(reader.ReadLine());
}
_sessionStateContainer.TextImportFile = _textImportService.Analyse(options, lines);
//TODO
if (_textImportService.AnalysedCuesheet != null)
{
var importCuesheet = new Cuesheet();
importCuesheet.Import(_textImportService.AnalysedCuesheet, applicationOptions);
_sessionStateContainer.ImportCuesheet = importCuesheet;
}
//_textImportService.Analyse(options)
//TODO: use new import service
//if (_sessionStateContainer.TextImportFile != null)
//{
// _sessionStateContainer.TextImportFile.TimeSpanFormat.ValidateablePropertyChanged -= Timespanformat_ValidateablePropertyChanged;
// _sessionStateContainer.TextImportFile.TextImportScheme.ValidateablePropertyChanged -= TextImportScheme_ValidateablePropertyChanged;
//}
//_sessionStateContainer.TextImportFile = new TextImportfile(memoryStream, options);
//_sessionStateContainer.TextImportFile.TimeSpanFormat.ValidateablePropertyChanged += Timespanformat_ValidateablePropertyChanged;
//_sessionStateContainer.TextImportFile.TextImportScheme.ValidateablePropertyChanged += TextImportScheme_ValidateablePropertyChanged;
importFileTypes.Add(file, ImportFileType.Textfile);
}
if (IOUtility.CheckFileMimeTypeForAudioCodec(file))
Expand Down

0 comments on commit efb987b

Please sign in to comment.