Skip to content

Commit a140c55

Browse files
committed
nevermind, it wasn't used, so out the door it goes.
1 parent 2ffeff6 commit a140c55

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

src/main/java/com/btk5h/skriptmirror/util/SkriptReflection.java

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import ch.njol.skript.expressions.base.EventValueExpression;
1010
import ch.njol.skript.lang.DefaultExpression;
1111
import ch.njol.skript.lang.ExpressionInfo;
12-
import ch.njol.skript.lang.SkriptParser;
1312
import ch.njol.skript.lang.SyntaxElementInfo;
1413
import ch.njol.skript.registrations.Classes;
1514
import ch.njol.skript.structures.StructOptions;
@@ -36,7 +35,6 @@ public class SkriptReflection {
3635
private static Method VARIABLES_MAP_COPY;
3736
private static Field DEFAULT_EXPRESSION;
3837
private static Field PARSED_VALUE;
39-
private static Method PARSE_I;
4038
private static Field EXPRESSIONS;
4139
private static Field OPTIONS;
4240

@@ -101,18 +99,6 @@ public class SkriptReflection {
10199
"therefore and/or warnings won't be suppressed");
102100
}
103101

104-
try {
105-
if (Skript.getVersion().compareTo(2, 8) >= 0) {
106-
_METHOD = SkriptParser.class.getDeclaredMethod("parse_i", String.class);
107-
} else {
108-
_METHOD = SkriptParser.class.getDeclaredMethod("parse_i", String.class, int.class, int.class);
109-
}
110-
_METHOD.setAccessible(true);
111-
PARSE_I = _METHOD;
112-
} catch (NoSuchMethodException e) {
113-
warning("Skript's parse_i method could not be resolved, therefore prioritized loading won't work.");
114-
}
115-
116102
try {
117103
_FIELD = Skript.class.getDeclaredField("expressions");
118104
_FIELD.setAccessible(true);
@@ -285,20 +271,6 @@ public static void disableAndOrWarnings() {
285271
}
286272
}
287273

288-
/**
289-
* Executes {@link SkriptParser}'s {@code parse_i} method with the given arguments.
290-
*/
291-
public static SkriptParser.ParseResult parse_i(SkriptParser skriptParser, String pattern, int i, int j) {
292-
if (PARSE_I == null)
293-
return null;
294-
295-
try {
296-
return (SkriptParser.ParseResult) PARSE_I.invoke(skriptParser, pattern, i, j);
297-
} catch (IllegalAccessException | InvocationTargetException e) {
298-
throw new RuntimeException(e);
299-
}
300-
}
301-
302274
/**
303275
* {@return} a list of all of Skript's registered {@link ch.njol.skript.lang.Expression}s.
304276
*/

0 commit comments

Comments
 (0)