From edc3de44887482cebe78fa45caa29c59588d5d89 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 27 Mar 2014 17:11:58 +0100 Subject: [PATCH] Simplify state filtering. --- src/main/java/net/pterodactylus/rhynodge/engine/Engine.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/net/pterodactylus/rhynodge/engine/Engine.java b/src/main/java/net/pterodactylus/rhynodge/engine/Engine.java index bb42289..91c5df9 100644 --- a/src/main/java/net/pterodactylus/rhynodge/engine/Engine.java +++ b/src/main/java/net/pterodactylus/rhynodge/engine/Engine.java @@ -154,9 +154,7 @@ public class Engine extends AbstractExecutionThreadService { /* convert states. */ for (Filter filter : nextReaction.get().getReaction().filters()) { if (state.success()) { - net.pterodactylus.rhynodge.State newState = filter.filter(state); - //logger.debug(String.format("Old state is %s, new state is %s.", state, newState)); - state = newState; + state = filter.filter(state); } } if (!state.success()) { -- 2.7.4