From fbcb79061190bbff7cee269729b42ee98d0f0f24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Sat, 17 Jun 2017 19:57:22 +0200 Subject: [PATCH] Minor refactoring. --- .../src/pddlparse/detail/parsing/AtomicFormula.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/pddlparse/src/pddlparse/detail/parsing/AtomicFormula.cpp b/lib/pddlparse/src/pddlparse/detail/parsing/AtomicFormula.cpp index 0ad5e2e..bc73108 100644 --- a/lib/pddlparse/src/pddlparse/detail/parsing/AtomicFormula.cpp +++ b/lib/pddlparse/src/pddlparse/detail/parsing/AtomicFormula.cpp @@ -34,13 +34,7 @@ std::experimental::optional parseAtomicFormula(Context &cont tokenizer.seek(position); // Now, test supported expressions - std::experimental::optional atomicFormula; - - if ((atomicFormula = parsePredicate(context, astContext, variableStack))) - return std::move(atomicFormula.value()); - - tokenizer.seek(position); - return std::experimental::nullopt; + return parsePredicate(context, astContext, variableStack); } ////////////////////////////////////////////////////////////////////////////////////////////////////