Skip to content

Commit

Permalink
Remove description from PortType class
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Feb 24, 2025
1 parent 3043877 commit 7fc5869
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ DataSeriesRepository DataSeriesRepoImporter::importFromDirectory(const std::file
const auto& entry: paths | pathFilter)
{
if (!hasRightExtension(entry))
{
continue;
}
auto timeSeriesSet = std::make_unique<TimeSeriesSet>(importFromFile(entry, csvSeparators));
repo.addDataSeries(std::move(timeSeriesSet));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,8 @@ namespace Antares::Study::SystemModel
class PortType
{
public:
PortType(const std::string& id,
const std::string& description,
std::vector<PortField>&& fields):
PortType(const std::string& id, std::vector<PortField>&& fields):
id_(id),
description_(description),
fields_(std::move(fields))
{
}
Expand All @@ -45,19 +42,13 @@ class PortType
return id_;
}

const std::string& Description() const
{
return description_;
}

const std::vector<PortField>& Fields() const
{
return fields_;
}

private:
std::string id_;
std::string description_;

std::vector<PortField> fields_;
};
Expand Down

0 comments on commit 7fc5869

Please sign in to comment.