Parser::parseState(): remove the 'verbose' debugging facility
This one could only be enable by modifying the source code. If such debugging output is needed, it should be directly added via std::cout and removed it before proposing the PR...
This commit is contained in:
@@ -257,7 +257,6 @@ namespace Opm {
|
||||
}
|
||||
|
||||
bool Parser::parseState(std::shared_ptr<ParserState> parserState) const {
|
||||
bool verbose = false;
|
||||
bool stopParsing = false;
|
||||
|
||||
if (parserState->inputstream) {
|
||||
@@ -284,8 +283,6 @@ namespace Opm {
|
||||
std::string includeFileAsString = readValueToken<std::string>(firstRecord->getItem(0));
|
||||
boost::filesystem::path includeFile = getIncludeFilePath(parserState, includeFileAsString);
|
||||
|
||||
if (verbose)
|
||||
std::cout << parserState->rawKeyword->getKeywordName() << " " << includeFile << std::endl;
|
||||
|
||||
std::shared_ptr<ParserState> newParserState (new ParserState(includeFile.string(), parserState->deck, parserState->rootPath, parserState->strictParsing));
|
||||
if (!newParserState->initSuccessful)
|
||||
@@ -294,8 +291,6 @@ namespace Opm {
|
||||
stopParsing = parseState(newParserState);
|
||||
if (stopParsing) break;
|
||||
} else {
|
||||
if (verbose)
|
||||
std::cout << parserState->rawKeyword->getKeywordName() << std::endl;
|
||||
|
||||
if (isRecognizedKeyword(parserState->rawKeyword->getKeywordName())) {
|
||||
ParserKeywordConstPtr parserKeyword = getParserKeywordFromDeckName(parserState->rawKeyword->getKeywordName());
|
||||
|
||||
Reference in New Issue
Block a user