From b1e72da839774febe05d87b7fda02987f65e3731 Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Tue, 4 Nov 2014 23:28:57 +0100 Subject: [PATCH] Cleanup unneccessary ArrayList in class Background. --- .../spacescooter/background/Background.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/de/teamteamteam/spacescooter/background/Background.java b/src/de/teamteamteam/spacescooter/background/Background.java index 5407c49..cf957d2 100644 --- a/src/de/teamteamteam/spacescooter/background/Background.java +++ b/src/de/teamteamteam/spacescooter/background/Background.java @@ -1,23 +1,11 @@ package de.teamteamteam.spacescooter.background; -import java.util.ArrayList; - import de.teamteamteam.spacescooter.entity.Entity; public abstract class Background extends Entity { - public static ArrayList backgrounds = null; - - /** - * We need to initialize the ArrayList, so the EntityUpdateThread won't beat us. - */ - static { - Background.backgrounds = new ArrayList(); - } - public Background(int x, int y) { super(x, y); - Background.backgrounds.add(this); } }