Fixed performance issue caused by skipping over unsupported sections multiple times.

This commit is contained in:
Patrick Lühne 2016-06-13 16:17:55 +02:00
parent f24491cd5a
commit 2b55d156ae
2 changed files with 0 additions and 2 deletions

View File

@ -33,7 +33,6 @@ ExpressionPointer parsePredicate(Context &context, ExpressionContext &expression
inline void warnUnsupported(Context &context, const std::string &expressionIdentifier) inline void warnUnsupported(Context &context, const std::string &expressionIdentifier)
{ {
context.logger.parserWarning(context.parser, "Expression type \"" + expressionIdentifier + "\" currently unsupported in this context"); context.logger.parserWarning(context.parser, "Expression type \"" + expressionIdentifier + "\" currently unsupported in this context");
skipSection(context.parser);
} }
//////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////

View File

@ -20,7 +20,6 @@ namespace pddl
inline void warnUnsupported(Context &context, const std::string &expressionIdentifier) inline void warnUnsupported(Context &context, const std::string &expressionIdentifier)
{ {
context.logger.parserWarning(context.parser, "Expression type \"" + expressionIdentifier + "\" currently unsupported in this context"); context.logger.parserWarning(context.parser, "Expression type \"" + expressionIdentifier + "\" currently unsupported in this context");
skipSection(context.parser);
} }
//////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////