From 1b4531faaf6737cc1eb5626a88f29272d6dc7bc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 4 Jan 2016 20:51:08 +0100 Subject: PathBuilder: remove useless code --- core/src/ch/asynk/rustanddust/engine/PathBuilder.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/src/ch/asynk/rustanddust/engine/PathBuilder.java b/core/src/ch/asynk/rustanddust/engine/PathBuilder.java index 70c9236..2846928 100644 --- a/core/src/ch/asynk/rustanddust/engine/PathBuilder.java +++ b/core/src/ch/asynk/rustanddust/engine/PathBuilder.java @@ -126,10 +126,8 @@ public class PathBuilder implements Disposable if (paths.size() > 1) { Path good = paths.get(0); for (Path path : paths) { - if ( (path.fitness > good.fitness) || ((path.fitness == good.fitness) && (path.cost < good.cost))) { + if ( (path.fitness > good.fitness) || ((path.fitness == good.fitness) && (path.cost < good.cost))) good = path; - good = path; - } } paths.remove(good); -- cgit v1.1-2-g2b99