From def07fe50c8bef7d0fff235e0b30b79edb101f61 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Fri, 26 Aug 2022 20:47:01 +0200 Subject: [PATCH] Remove sout Signed-off-by: yoyosource --- .../src/de/steamwar/bausystem/linkage/LinkageUtils.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/linkage/LinkageUtils.java b/BauSystem_Main/src/de/steamwar/bausystem/linkage/LinkageUtils.java index fbe361ce..4cad8c7f 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/linkage/LinkageUtils.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/linkage/LinkageUtils.java @@ -34,7 +34,6 @@ import java.lang.reflect.Constructor; import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.util.*; -import java.util.concurrent.atomic.AtomicLong; import java.util.logging.Level; import java.util.stream.Collectors; @@ -62,13 +61,10 @@ public class LinkageUtils { } private void internalLinkOrUnlink(boolean unlink, Class toLink) { - AtomicLong totalTime = new AtomicLong(); try (BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(BauSystem.class.getResourceAsStream("/de.steamwar.bausystem/" + toLink.getTypeName().replace("$", "."))))) { bufferedReader.lines().forEach(s -> { try { - long time = System.currentTimeMillis(); linkOrUnlink(Class.forName(s), unlink); - totalTime.addAndGet(System.currentTimeMillis() - time); } catch (ClassNotFoundException e) { // ignored } catch (Exception e) { @@ -80,7 +76,6 @@ public class LinkageUtils { } catch (NullPointerException e) { // Ignored } - BauSystem.getInstance().getLogger().info("Linkage took " + totalTime + "ms"); } private void internalLinkFields() {