mirror of
https://github.com/LeavesMC/Leaves.git
synced 2025-12-30 12:29:18 +00:00
Update Paper
This commit is contained in:
@@ -6,10 +6,10 @@ Subject: [PATCH] Delete Timings
|
||||
|
||||
diff --git a/src/main/java/co/aikar/timings/FullServerTickHandler.java b/src/main/java/co/aikar/timings/FullServerTickHandler.java
|
||||
deleted file mode 100644
|
||||
index 36b8fe86335df851f9c85d6bb2a91368b4d945d1..0000000000000000000000000000000000000000
|
||||
index 3e747abde6fefae90f1c15cb00158bc5303cbe50..0000000000000000000000000000000000000000
|
||||
--- a/src/main/java/co/aikar/timings/FullServerTickHandler.java
|
||||
+++ /dev/null
|
||||
@@ -1,86 +0,0 @@
|
||||
@@ -1,89 +0,0 @@
|
||||
-package co.aikar.timings;
|
||||
-
|
||||
-import static co.aikar.timings.TimingsManager.*;
|
||||
@@ -17,6 +17,9 @@ index 36b8fe86335df851f9c85d6bb2a91368b4d945d1..00000000000000000000000000000000
|
||||
-import org.bukkit.Bukkit;
|
||||
-import org.jetbrains.annotations.NotNull;
|
||||
-
|
||||
-/**
|
||||
- * @deprecated Timings will be removed in the future
|
||||
- */
|
||||
-@Deprecated(forRemoval = true)
|
||||
-public class FullServerTickHandler extends TimingHandler {
|
||||
- private static final TimingIdentifier IDENTITY = new TimingIdentifier("Minecraft", "Full Server Tick", null);
|
||||
@@ -98,10 +101,10 @@ index 36b8fe86335df851f9c85d6bb2a91368b4d945d1..00000000000000000000000000000000
|
||||
-}
|
||||
diff --git a/src/main/java/co/aikar/timings/NullTimingHandler.java b/src/main/java/co/aikar/timings/NullTimingHandler.java
|
||||
deleted file mode 100644
|
||||
index 81671cf40feeed2844ee8d92348d48062aaf2c46..0000000000000000000000000000000000000000
|
||||
index 42e7e712403676171d34d5f2be27e48e7a071ebd..0000000000000000000000000000000000000000
|
||||
--- a/src/main/java/co/aikar/timings/NullTimingHandler.java
|
||||
+++ /dev/null
|
||||
@@ -1,69 +0,0 @@
|
||||
@@ -1,72 +0,0 @@
|
||||
-/*
|
||||
- * This file is licensed under the MIT License (MIT).
|
||||
- *
|
||||
@@ -130,6 +133,9 @@ index 81671cf40feeed2844ee8d92348d48062aaf2c46..00000000000000000000000000000000
|
||||
-import org.jetbrains.annotations.NotNull;
|
||||
-import org.jetbrains.annotations.Nullable;
|
||||
-
|
||||
-/**
|
||||
- * @deprecated Timings will be removed in the future
|
||||
- */
|
||||
-@Deprecated(forRemoval = true)
|
||||
-public final class NullTimingHandler implements Timing {
|
||||
- public static final Timing NULL = new NullTimingHandler();
|
||||
@@ -173,10 +179,10 @@ index 81671cf40feeed2844ee8d92348d48062aaf2c46..00000000000000000000000000000000
|
||||
-}
|
||||
diff --git a/src/main/java/co/aikar/timings/TimedEventExecutor.java b/src/main/java/co/aikar/timings/TimedEventExecutor.java
|
||||
deleted file mode 100644
|
||||
index 8f29c1561ba5916cb5634392edd8bd2a5a294a51..0000000000000000000000000000000000000000
|
||||
index 157617933a772451f6c073d97afaf305769b4d40..0000000000000000000000000000000000000000
|
||||
--- a/src/main/java/co/aikar/timings/TimedEventExecutor.java
|
||||
+++ /dev/null
|
||||
@@ -1,90 +0,0 @@
|
||||
@@ -1,93 +0,0 @@
|
||||
-/*
|
||||
- * This file is licensed under the MIT License (MIT).
|
||||
- *
|
||||
@@ -213,6 +219,9 @@ index 8f29c1561ba5916cb5634392edd8bd2a5a294a51..00000000000000000000000000000000
|
||||
-import org.jetbrains.annotations.NotNull;
|
||||
-import org.jetbrains.annotations.Nullable;
|
||||
-
|
||||
-/**
|
||||
- * @deprecated Timings will be removed in the future
|
||||
- */
|
||||
-@Deprecated(forRemoval = true)
|
||||
-public class TimedEventExecutor implements EventExecutor {
|
||||
-
|
||||
@@ -269,7 +278,7 @@ index 8f29c1561ba5916cb5634392edd8bd2a5a294a51..00000000000000000000000000000000
|
||||
-}
|
||||
diff --git a/src/main/java/co/aikar/timings/Timing.java b/src/main/java/co/aikar/timings/Timing.java
|
||||
deleted file mode 100644
|
||||
index 7514fad26f955329f8bf17ff17db75f0c8301ee5..0000000000000000000000000000000000000000
|
||||
index 4195efcfe044618052bb03dea34a4fb2ca7c44f0..0000000000000000000000000000000000000000
|
||||
--- a/src/main/java/co/aikar/timings/Timing.java
|
||||
+++ /dev/null
|
||||
@@ -1,86 +0,0 @@
|
||||
@@ -304,7 +313,7 @@ index 7514fad26f955329f8bf17ff17db75f0c8301ee5..00000000000000000000000000000000
|
||||
-/**
|
||||
- * Provides an ability to time sections of code within the Minecraft Server
|
||||
- *
|
||||
- * @deprecated Timings will likely be replaced with Spark in the future
|
||||
- * @deprecated Timings will be removed in the future
|
||||
- */
|
||||
-@Deprecated(forRemoval = true)
|
||||
-public interface Timing extends AutoCloseable {
|
||||
@@ -720,10 +729,11 @@ index 199789d56d22fcb1b77ebd56805cc28aa5a5ab0a..00000000000000000000000000000000
|
||||
- }
|
||||
-}
|
||||
diff --git a/src/main/java/co/aikar/timings/TimingHistory.java b/src/main/java/co/aikar/timings/TimingHistory.java
|
||||
index 2d87237ea99d42c6ce896d52a1b2e5c3ec4d4568..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644
|
||||
deleted file mode 100644
|
||||
index 6f6eb1a2e6c8d49014a7ae44540ee282bae5200e..0000000000000000000000000000000000000000
|
||||
--- a/src/main/java/co/aikar/timings/TimingHistory.java
|
||||
+++ b/src/main/java/co/aikar/timings/TimingHistory.java
|
||||
@@ -1,352 +0,0 @@
|
||||
+++ /dev/null
|
||||
@@ -1,357 +0,0 @@
|
||||
-/*
|
||||
- * This file is licensed under the MIT License (MIT).
|
||||
- *
|
||||
@@ -776,6 +786,11 @@ index 2d87237ea99d42c6ce896d52a1b2e5c3ec4d4568..e69de29bb2d1d6434b8b29ae775ad8c2
|
||||
-import static co.aikar.timings.TimingsManager.MINUTE_REPORTS;
|
||||
-import static co.aikar.util.JSONUtil.*;
|
||||
-
|
||||
-/**
|
||||
- * Internal.
|
||||
- *
|
||||
- * @deprecated Timings will be removed in the future
|
||||
- */
|
||||
-@Deprecated(forRemoval = true)
|
||||
-@SuppressWarnings({"deprecation", "SuppressionAnnotation", "Convert2Lambda", "Anonymous2MethodRef"})
|
||||
-public class TimingHistory {
|
||||
@@ -1264,10 +1279,10 @@ index df142a89b8c43acb81eb383eac0ef048a1f49a6e..00000000000000000000000000000000
|
||||
-}
|
||||
diff --git a/src/main/java/co/aikar/timings/Timings.java b/src/main/java/co/aikar/timings/Timings.java
|
||||
deleted file mode 100644
|
||||
index 9812d668ad945aba486fbf6d5bf83c4292cb5d03..0000000000000000000000000000000000000000
|
||||
index e81d0bc309de877ed2b5da6122f55c162e9b5f10..0000000000000000000000000000000000000000
|
||||
--- a/src/main/java/co/aikar/timings/Timings.java
|
||||
+++ /dev/null
|
||||
@@ -1,337 +0,0 @@
|
||||
@@ -1,331 +0,0 @@
|
||||
-/*
|
||||
- * This file is licensed under the MIT License (MIT).
|
||||
- *
|
||||
@@ -1311,7 +1326,7 @@ index 9812d668ad945aba486fbf6d5bf83c4292cb5d03..00000000000000000000000000000000
|
||||
-import org.jetbrains.annotations.Nullable;
|
||||
-
|
||||
-/**
|
||||
- * @deprecated Timings will likely be replaced with Spark in the future
|
||||
- * @deprecated Timings will be removed in the future
|
||||
- */
|
||||
-@Deprecated(forRemoval = true)
|
||||
-@SuppressWarnings({"UnusedDeclaration", "WeakerAccess", "SameParameterValue"})
|
||||
@@ -1429,23 +1444,17 @@ index 9812d668ad945aba486fbf6d5bf83c4292cb5d03..00000000000000000000000000000000
|
||||
-
|
||||
- public static Component deprecationMessage() {
|
||||
- return Component.text()
|
||||
- .color(TextColor.color(0xf3ef91))
|
||||
- .color(TextColor.color(0xffc93a))
|
||||
- .append(Component.text("[!] The timings profiler has been enabled but has been scheduled for removal from Paper in the future."))
|
||||
- .append(Component.newline())
|
||||
- .append(
|
||||
- Component.text(" We recommend installing the spark profiler as a replacement: ")
|
||||
- .append(
|
||||
- Component.text()
|
||||
- .content("https://spark.lucko.me/")
|
||||
- .clickEvent(ClickEvent.openUrl("https://spark.lucko.me/")))
|
||||
- )
|
||||
- .append(Component.text(" We recommend migrating to the spark profiler."))
|
||||
- .append(Component.newline())
|
||||
- .append(
|
||||
- Component.text(" For more information please visit: ")
|
||||
- .append(
|
||||
- Component.text()
|
||||
- .content("https://github.com/PaperMC/Paper/issues/8948")
|
||||
- .clickEvent(ClickEvent.openUrl("https://github.com/PaperMC/Paper/issues/8948")))
|
||||
- .content("https://github.com/PaperMC/Paper/discussions/10565")
|
||||
- .clickEvent(ClickEvent.openUrl("https://github.com/PaperMC/Paper/discussions/10565")))
|
||||
- )
|
||||
- .build();
|
||||
- }
|
||||
@@ -1607,10 +1616,10 @@ index 9812d668ad945aba486fbf6d5bf83c4292cb5d03..00000000000000000000000000000000
|
||||
-
|
||||
diff --git a/src/main/java/co/aikar/timings/TimingsCommand.java b/src/main/java/co/aikar/timings/TimingsCommand.java
|
||||
deleted file mode 100644
|
||||
index e801e79fa57c44b2e5d359647c920f88064826f1..0000000000000000000000000000000000000000
|
||||
index 95d87c9dbf2b237787294dfbe7fed87a36e6dedf..0000000000000000000000000000000000000000
|
||||
--- a/src/main/java/co/aikar/timings/TimingsCommand.java
|
||||
+++ /dev/null
|
||||
@@ -1,124 +0,0 @@
|
||||
@@ -1,126 +0,0 @@
|
||||
-/*
|
||||
- * This file is licensed under the MIT License (MIT).
|
||||
- *
|
||||
@@ -1649,7 +1658,9 @@ index e801e79fa57c44b2e5d359647c920f88064826f1..00000000000000000000000000000000
|
||||
-
|
||||
-import static net.kyori.adventure.text.Component.text;
|
||||
-
|
||||
-
|
||||
-/**
|
||||
- * @deprecated Timings will be removed in the future
|
||||
- */
|
||||
-@Deprecated(forRemoval = true)
|
||||
-public class TimingsCommand extends BukkitCommand {
|
||||
- private static final List<String> TIMINGS_SUBCOMMANDS = ImmutableList.of("report", "reset", "on", "off", "paste", "verbon", "verboff");
|
||||
@@ -1737,7 +1748,7 @@ index e801e79fa57c44b2e5d359647c920f88064826f1..00000000000000000000000000000000
|
||||
-}
|
||||
diff --git a/src/main/java/co/aikar/timings/TimingsManager.java b/src/main/java/co/aikar/timings/TimingsManager.java
|
||||
deleted file mode 100644
|
||||
index 5e1558ca3ffeeaf2645fa003965474a442d650bf..0000000000000000000000000000000000000000
|
||||
index e72ad05abada04426e32a73d02b21cb69079d268..0000000000000000000000000000000000000000
|
||||
--- a/src/main/java/co/aikar/timings/TimingsManager.java
|
||||
+++ /dev/null
|
||||
@@ -1,192 +0,0 @@
|
||||
@@ -1783,7 +1794,7 @@ index 5e1558ca3ffeeaf2645fa003965474a442d650bf..00000000000000000000000000000000
|
||||
-import org.jetbrains.annotations.Nullable;
|
||||
-
|
||||
-/**
|
||||
- * @deprecated Timings will likely be replaced with Spark in the future
|
||||
- * @deprecated Timings will be removed in the future
|
||||
- */
|
||||
-@Deprecated(forRemoval = true)
|
||||
-public final class TimingsManager {
|
||||
@@ -1935,10 +1946,10 @@ index 5e1558ca3ffeeaf2645fa003965474a442d650bf..00000000000000000000000000000000
|
||||
-}
|
||||
diff --git a/src/main/java/co/aikar/timings/TimingsReportListener.java b/src/main/java/co/aikar/timings/TimingsReportListener.java
|
||||
deleted file mode 100644
|
||||
index 3af5b8ea795311582044c712de50d29412024b77..0000000000000000000000000000000000000000
|
||||
index df066d6f8d55afbc0c1897c486d638657a5f8df9..0000000000000000000000000000000000000000
|
||||
--- a/src/main/java/co/aikar/timings/TimingsReportListener.java
|
||||
+++ /dev/null
|
||||
@@ -1,87 +0,0 @@
|
||||
@@ -1,90 +0,0 @@
|
||||
-package co.aikar.timings;
|
||||
-
|
||||
-import com.google.common.base.Preconditions;
|
||||
@@ -1953,6 +1964,9 @@ index 3af5b8ea795311582044c712de50d29412024b77..00000000000000000000000000000000
|
||||
-
|
||||
-import java.util.List;
|
||||
-
|
||||
-/**
|
||||
- * @deprecated Timings will be removed in the future
|
||||
- */
|
||||
-@Deprecated(forRemoval = true)
|
||||
-@SuppressWarnings("WeakerAccess")
|
||||
-public class TimingsReportListener implements net.kyori.adventure.audience.ForwardingAudience, MessageCommandSender {
|
||||
@@ -2086,19 +2100,28 @@ index 632c4961515f5052551f841cfa840e60bba7a257..00000000000000000000000000000000
|
||||
- }
|
||||
-}
|
||||
diff --git a/src/main/java/org/bukkit/command/Command.java b/src/main/java/org/bukkit/command/Command.java
|
||||
index c7cdc2ad8a2c43e8c0fcaa1761d3b81726c5ebcb..3ab75d571be4032e1bcfc5bb38168b81af63f0ad 100644
|
||||
index 0a26fffe9b1e5080b5639767a03af11006108b4a..3b73c0e59788f5f49ca2423032550f11855d52ae 100644
|
||||
--- a/src/main/java/org/bukkit/command/Command.java
|
||||
+++ b/src/main/java/org/bukkit/command/Command.java
|
||||
@@ -33,7 +33,6 @@ public abstract class Command {
|
||||
@@ -33,16 +33,6 @@ public abstract class Command {
|
||||
protected String usageMessage;
|
||||
private String permission;
|
||||
private net.kyori.adventure.text.Component permissionMessage; // Paper
|
||||
- /**
|
||||
- * @deprecated Timings will be removed in the future
|
||||
- */
|
||||
- @Deprecated(forRemoval = true)
|
||||
- public co.aikar.timings.Timing timings; // Paper
|
||||
@NotNull public String getTimingName() {return getName();} // Paper
|
||||
- /**
|
||||
- * @deprecated Timings will be removed in the future
|
||||
- */
|
||||
- @Deprecated(forRemoval = true)
|
||||
- @NotNull public String getTimingName() {return getName();} // Paper
|
||||
|
||||
protected Command(@NotNull String name) {
|
||||
this(name, "", "/" + name, new ArrayList<String>());
|
||||
diff --git a/src/main/java/org/bukkit/command/FormattedCommandAlias.java b/src/main/java/org/bukkit/command/FormattedCommandAlias.java
|
||||
index abe256e1e45ce28036da4aa1586715bc8a1a3414..b359306500e640f4b0761ae9aa996cf64e4fe63f 100644
|
||||
index abe256e1e45ce28036da4aa1586715bc8a1a3414..9eab8024e0675865f17669847759a26d28f74f3a 100644
|
||||
--- a/src/main/java/org/bukkit/command/FormattedCommandAlias.java
|
||||
+++ b/src/main/java/org/bukkit/command/FormattedCommandAlias.java
|
||||
@@ -12,7 +12,6 @@ public class FormattedCommandAlias extends Command {
|
||||
@@ -2109,6 +2132,17 @@ index abe256e1e45ce28036da4aa1586715bc8a1a3414..b359306500e640f4b0761ae9aa996cf6
|
||||
this.formatStrings = formatStrings;
|
||||
}
|
||||
|
||||
@@ -120,10 +119,6 @@ public class FormattedCommandAlias extends Command {
|
||||
return formatString.trim(); // Paper - Causes an extra space at the end, breaks with brig commands
|
||||
}
|
||||
|
||||
- @NotNull
|
||||
- @Override // Paper
|
||||
- public String getTimingName() {return "Command Forwarder - " + super.getTimingName();} // Paper
|
||||
-
|
||||
private static boolean inRange(int i, int j, int k) {
|
||||
return i >= j && i <= k;
|
||||
}
|
||||
diff --git a/src/main/java/org/bukkit/command/SimpleCommandMap.java b/src/main/java/org/bukkit/command/SimpleCommandMap.java
|
||||
index 5df19bd701c67506689fc7f49d91f99ebfbc83f0..940565704d0e8914a76cf25daf7d1f5ecd99bad4 100644
|
||||
--- a/src/main/java/org/bukkit/command/SimpleCommandMap.java
|
||||
|
||||
Reference in New Issue
Block a user