Skip to content

Commit

Permalink
Small refactoring CR23 - File deletion (#1732)
Browse files Browse the repository at this point in the history
Removing the deletion of deprecated files (hydro max power TS)
Because : 
- The loading code area is not the place to delete deprecated files
- Removing deleted files can be done with the cleaner instead
- There is no other place where we remove deprecated file when running the solver, so why now ?
  • Loading branch information
nikolaredstork authored Nov 2, 2023
1 parent 7988dde commit 3da3b13
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
8 changes: 0 additions & 8 deletions src/libs/antares/study/area/list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -934,14 +934,6 @@ static bool AreaListLoadFromFolderSingleArea(Study& study,
study.parameters.derated, study.header.version, study.usedByTheSolver);
}

buffer.clear() << study.folderInput << SEP << "hydro" << SEP << "common" << SEP
<< "capacity" << SEP << "maxpower_" << area.id << ".txt";

if (bool exists = IO::File::Exists(buffer); study.header.version >= 870 && exists)
{
IO::File::Delete(buffer);
}

++options.progressTicks;
options.pushProgressLogs();
}
Expand Down
1 change: 0 additions & 1 deletion src/libs/antares/study/study.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1541,6 +1541,5 @@ void Study::computePThetaInfForThermalClusters() const
}
}
}

} // namespace Antares::Data

0 comments on commit 3da3b13

Please sign in to comment.