From 7fc5869efccb6fc2940579960d6f2faa28ca4087 Mon Sep 17 00:00:00 2001 From: Vincent Payet Date: Mon, 24 Feb 2025 16:12:54 +0100 Subject: [PATCH] Remove description from PortType class --- .../DataSeriesRepoImporter.cpp | 2 ++ .../include/antares/study/system-model/portType.h | 11 +---------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/io/inputs/data-series-csv-importer/DataSeriesRepoImporter.cpp b/src/io/inputs/data-series-csv-importer/DataSeriesRepoImporter.cpp index 680942bff7..d9c4550e17 100644 --- a/src/io/inputs/data-series-csv-importer/DataSeriesRepoImporter.cpp +++ b/src/io/inputs/data-series-csv-importer/DataSeriesRepoImporter.cpp @@ -152,7 +152,9 @@ DataSeriesRepository DataSeriesRepoImporter::importFromDirectory(const std::file const auto& entry: paths | pathFilter) { if (!hasRightExtension(entry)) + { continue; + } auto timeSeriesSet = std::make_unique(importFromFile(entry, csvSeparators)); repo.addDataSeries(std::move(timeSeriesSet)); } diff --git a/src/study/system-model/include/antares/study/system-model/portType.h b/src/study/system-model/include/antares/study/system-model/portType.h index 907d5a33fd..66cb2d8761 100644 --- a/src/study/system-model/include/antares/study/system-model/portType.h +++ b/src/study/system-model/include/antares/study/system-model/portType.h @@ -31,11 +31,8 @@ namespace Antares::Study::SystemModel class PortType { public: - PortType(const std::string& id, - const std::string& description, - std::vector&& fields): + PortType(const std::string& id, std::vector&& fields): id_(id), - description_(description), fields_(std::move(fields)) { } @@ -45,11 +42,6 @@ class PortType return id_; } - const std::string& Description() const - { - return description_; - } - const std::vector& Fields() const { return fields_; @@ -57,7 +49,6 @@ class PortType private: std::string id_; - std::string description_; std::vector fields_; };