From d571edd2b9ca6376b694fa49b41bb6ebe4e9a187 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Tue, 1 Feb 2022 08:51:51 +0100 Subject: [PATCH] Remove FlatteningWrapper.IFlatteningWrapper.start and stop as they should not be exposed Signed-off-by: yoyosource --- .../de/steamwar/bausystem/utils/FlatteningWrapper15.java | 6 ++---- .../src/de/steamwar/bausystem/utils/FlatteningWrapper.java | 2 -- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/BauSystem_15/src/de/steamwar/bausystem/utils/FlatteningWrapper15.java b/BauSystem_15/src/de/steamwar/bausystem/utils/FlatteningWrapper15.java index da8b39ac..a1579c29 100644 --- a/BauSystem_15/src/de/steamwar/bausystem/utils/FlatteningWrapper15.java +++ b/BauSystem_15/src/de/steamwar/bausystem/utils/FlatteningWrapper15.java @@ -124,13 +124,11 @@ public class FlatteningWrapper15 implements FlatteningWrapper.IFlatteningWrapper private final Map timing = new HashMap<>(); - @Override - public void start(String name) { + private void start(String name) { timing.put(name, System.currentTimeMillis()); } - @Override - public long stop(String name) { + private long stop(String name) { return System.currentTimeMillis() - timing.getOrDefault(name, System.currentTimeMillis()); } diff --git a/BauSystem_Main/src/de/steamwar/bausystem/utils/FlatteningWrapper.java b/BauSystem_Main/src/de/steamwar/bausystem/utils/FlatteningWrapper.java index 3e41ad27..ebed2038 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/utils/FlatteningWrapper.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/utils/FlatteningWrapper.java @@ -49,8 +49,6 @@ public class FlatteningWrapper { boolean isWorldEditCommand(String command); void setSelection(Player p, Point minPoint, Point maxPoint); - void start(String name); - long stop(String name); EditSession paste(File file, Point pastePoint, PasteOptions pasteOptions); EditSession paste(Clipboard clipboard, Point pastePoint, PasteOptions pasteOptions); void changeColor(Clipboard clipboard, Color color) throws WorldEditException;