Skip to content

Commit

Permalink
Add new function to the header and minor whitespace cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Myoldmopar committed Aug 28, 2019
1 parent 86f5a52 commit 7bea52f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/EnergyPlus/InputProcessing/InputProcessor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -241,16 +241,13 @@ void InputProcessor::markObjectAsUsed(const std::string &objectType, const std::
void cleanEPJSON(json &epjson)
{
if (epjson.type() == json::value_t::object) {

epjson.erase("idf_order");
epjson.erase("idf_max_fields");
epjson.erase("idf_max_extensible_fields");

for (auto it = epjson.begin(); it != epjson.end(); ++it) {
cleanEPJSON(epjson[it.key()]);
}
}

}

void InputProcessor::processInput()
Expand Down
2 changes: 2 additions & 0 deletions src/EnergyPlus/InputProcessing/InputProcessor.hh
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ class Validation;

namespace EnergyPlus {

void cleanEPJSON(nlohmann::json &epjson);

class InputProcessor
{
public:
Expand Down

0 comments on commit 7bea52f

Please sign in to comment.