From efd16e0d3feaea973599d9072811f81220d2ff2b Mon Sep 17 00:00:00 2001 From: Abdoulbari Zakir Date: Thu, 2 Jan 2025 10:35:30 +0100 Subject: [PATCH] update --- .../study/parts/short-term-storage/container.cpp | 10 ---------- .../short-term-storage-input-output.cpp | 1 - 2 files changed, 11 deletions(-) diff --git a/src/libs/antares/study/parts/short-term-storage/container.cpp b/src/libs/antares/study/parts/short-term-storage/container.cpp index e6de92c408..d94effd421 100644 --- a/src/libs/antares/study/parts/short-term-storage/container.cpp +++ b/src/libs/antares/study/parts/short-term-storage/container.cpp @@ -78,15 +78,6 @@ bool STStorageInput::createSTStorageClustersFromIniFile(const fs::path& path) static void loadHours(const std::string& hoursStr, AdditionalConstraints& additionalConstraints) { - // - // std::stringstream ss(value.c_str()); - // std::string hour; - // while (std::getline(ss, hour, ',')) - // { - // int hourVal = std::stoi(hour); - // constraint.hours.insert(hourVal); - // } - // Split the `hours` field into multiple groups std::regex groupRegex(R"(\[(.*?)\])"); // Match each group enclosed in square brackets @@ -145,7 +136,6 @@ bool STStorageInput::loadAdditionalConstraints(const fs::path& parentPath) if (key == "cluster") { - // TODO do i have to transform the name to id? TransformNameIntoID std::string clusterName; value.to(clusterName); additionalConstraints.cluster_id = transformNameIntoID(clusterName); diff --git a/src/tests/src/libs/antares/study/short-term-storage-input/short-term-storage-input-output.cpp b/src/tests/src/libs/antares/study/short-term-storage-input/short-term-storage-input-output.cpp index e66a1d632b..b01c391b58 100644 --- a/src/tests/src/libs/antares/study/short-term-storage-input/short-term-storage-input-output.cpp +++ b/src/tests/src/libs/antares/study/short-term-storage-input/short-term-storage-input-output.cpp @@ -22,7 +22,6 @@ #define WIN32_LEAN_AND_MEAN -#include #include #include