Skip to content

Commit

Permalink
Remove 'MarkedForRemoval' Annotation (SkriptLang#6054)
Browse files Browse the repository at this point in the history
Remove 'MarkedForRemoval' annotation
  • Loading branch information
UnderscoreTud authored Sep 22, 2023
1 parent 1ffe86f commit 27c6275
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 55 deletions.
43 changes: 0 additions & 43 deletions src/main/java/ch/njol/skript/util/MarkedForRemoval.java

This file was deleted.

24 changes: 12 additions & 12 deletions src/main/java/ch/njol/util/Math2.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
package ch.njol.util;

import ch.njol.skript.Skript;
import ch.njol.skript.util.MarkedForRemoval;
import org.jetbrains.annotations.ApiStatus.ScheduledForRemoval;
import org.jetbrains.annotations.ApiStatus;

import java.util.Arrays;
Expand Down Expand Up @@ -157,32 +157,32 @@ public static float safe(float value) {
}

@Deprecated
@MarkedForRemoval
@ScheduledForRemoval
public static int floorI(double value) {
return (int) Math.floor(value + Skript.EPSILON);
}

@Deprecated
@MarkedForRemoval
@ScheduledForRemoval
public static int ceilI(double value) {
return (int) Math.ceil(value - Skript.EPSILON);
}

// Change signature to return int instead of removing.
@Deprecated
@MarkedForRemoval
@ScheduledForRemoval
public static long floor(float value) {
return (long) Math.floor(value + Skript.EPSILON);
}

@Deprecated
@MarkedForRemoval
@ScheduledForRemoval
public static int min(int a, int b, int c) {
return Math.min(a, Math.min(b, c));
}

@Deprecated
@MarkedForRemoval
@ScheduledForRemoval
public static int min(int... numbers) {
if (numbers.length == 0)
return 0;
Expand All @@ -193,13 +193,13 @@ public static int min(int... numbers) {
}

@Deprecated
@MarkedForRemoval
@ScheduledForRemoval
public static int max(int a, int b, int c) {
return Math.max(a, Math.max(b, c));
}

@Deprecated
@MarkedForRemoval
@ScheduledForRemoval
public static int max(int... numbers) {
if (numbers.length == 0)
return 0;
Expand All @@ -210,13 +210,13 @@ public static int max(int... numbers) {
}

@Deprecated
@MarkedForRemoval
@ScheduledForRemoval
public static double min(double a, double b, double c) {
return Math.min(a, Math.min(b, c));
}

@Deprecated
@MarkedForRemoval
@ScheduledForRemoval
public static double min(double... numbers) {
if (numbers.length == 0)
return Double.NaN;
Expand All @@ -227,13 +227,13 @@ public static double min(double... numbers) {
}

@Deprecated
@MarkedForRemoval
@ScheduledForRemoval
public static double max(double a, double b, double c) {
return Math.max(a, Math.max(b, c));
}

@Deprecated
@MarkedForRemoval
@ScheduledForRemoval
public static double max(double... numbers) {
if (numbers.length == 0)
return Double.NaN;
Expand Down

0 comments on commit 27c6275

Please sign in to comment.