From ec5fe0f15e5f475d146b97340e98c05789a94305 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Ho=C3=9F?= Date: Sat, 28 Sep 2013 00:40:33 +0200 Subject: [PATCH] Removed redundant comments MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Sebastian Hoß --- .../sebhoss/reguloj/implementation/SimpleRuleEngine.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/main/java/com/github/sebhoss/reguloj/implementation/SimpleRuleEngine.java b/src/main/java/com/github/sebhoss/reguloj/implementation/SimpleRuleEngine.java index d14bb3f..a680dda 100644 --- a/src/main/java/com/github/sebhoss/reguloj/implementation/SimpleRuleEngine.java +++ b/src/main/java/com/github/sebhoss/reguloj/implementation/SimpleRuleEngine.java @@ -25,12 +25,8 @@ public final class SimpleRuleEngine> implements RuleE public boolean analyze(final CONTEXT context, final Set> rules) { checkInputs(context, rules); - // Check whether any rule fires for (final Rule rule : rules) { if (rule.fires(context)) { - // A rule fired.. - - // .. so we are returning true return true; } } @@ -42,20 +38,13 @@ public final class SimpleRuleEngine> implements RuleE public void infer(final CONTEXT context, final Set> rules) { checkInputs(context, rules); - // Setup boolean ruleFired; - // Loop at least once through all rules do { - // Deactive looping after this iteration ruleFired = false; - // Check whether any rule fires for (final Rule rule : rules) { if (rule.run(context)) { - // A rule fired.. - - // .. so we re-activate looping ruleFired = true; } } -- 2.11.4.GIT