Skip to content

Commit

Permalink
code smell 3
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Jun 17, 2024
1 parent 92cb511 commit 72ed904
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 25 deletions.
17 changes: 1 addition & 16 deletions src/libs/antares/study/include/antares/study/parameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,6 @@ namespace Antares::Data
class Parameters final
{
public:
//! \name Constructor
//@{
/*!
** \brief Default Constructor
**
** \warning None of the variables are initialized. You must explicitly use
** the method `reset()` or the method `loadFromFile()`
** \see reset()
** \see loadFromFile()
*/
Parameters();
//! Destructor
~Parameters();
//@}

//! \name Simulation mode
//@{
//! Get if the simulation is in economy mode
Expand Down Expand Up @@ -504,7 +489,7 @@ class Parameters final
//@{
//! No output
// This variable is not stored within the study but only used by the solver
bool noOutput;
bool noOutput = false;
//@}

bool hydroDebug;
Expand Down
2 changes: 1 addition & 1 deletion src/libs/antares/study/load.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ bool Study::internalLoadBindingConstraints(const StudyLoadOptions& options)
class SetHandlerAreas
{
public:
SetHandlerAreas(Study& study):
explicit SetHandlerAreas(Study& study):
pStudy(study)
{
}
Expand Down
9 changes: 1 addition & 8 deletions src/libs/antares/study/parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ static bool ConvertCStrToListTimeSeries(const String& value, uint& v)
}

value.words(" ,;\t\r\n",
[&v](const AnyString& element) -> bool
[&v](const AnyString& element)
{
ShortString16 word(element);
word.toLower();
Expand Down Expand Up @@ -208,13 +208,6 @@ const char* SimulationModeToCString(SimulationMode mode)
}
}

Parameters::Parameters():
noOutput(false)
{
}

Parameters::~Parameters() = default;

bool Parameters::economy() const
{
return mode == SimulationMode::Economy;
Expand Down

0 comments on commit 72ed904

Please sign in to comment.