|
5 | 5 | import ch.njol.skript.classes.Changer.ChangeMode; |
6 | 6 | import ch.njol.skript.classes.Changer.ChangerUtils; |
7 | 7 | import ch.njol.skript.conditions.CondIsSet; |
8 | | -import ch.njol.skript.lang.util.ContextlessEvent; |
9 | 8 | import ch.njol.skript.lang.util.ConvertedExpression; |
10 | 9 | import ch.njol.skript.lang.util.SimpleExpression; |
11 | 10 | import ch.njol.skript.log.ErrorQuality; |
|
18 | 17 | import org.jetbrains.annotations.Nullable; |
19 | 18 | import org.skriptlang.skript.lang.converter.Converter; |
20 | 19 | import org.skriptlang.skript.lang.simplification.Simplifiable; |
21 | | -import org.skriptlang.skript.lang.simplification.SimplifiedLiteral; |
22 | 20 |
|
23 | 21 | import java.util.*; |
24 | 22 | import java.util.function.Function; |
@@ -249,18 +247,6 @@ default boolean canReturn(Class<?> returnType) { |
249 | 247 | */ |
250 | 248 | Expression<?> getSource(); |
251 | 249 |
|
252 | | - /** |
253 | | - * Attempts to create a {@link SimplifiedLiteral} by evaluating the expression with a {@link ContextlessEvent}. |
254 | | - * This should only be attempted IFF the expression's children are all literals and |
255 | | - * {@link #getAll(Event)} would always return the exact same value, no matter the context in which it is called. |
256 | | - * The value of {@link #toString(Event, boolean)} will be evaluated and captured for the literal's toString methods. |
257 | | - * |
258 | | - * @return A simplified literal with the data from this expression's evaluation. |
259 | | - */ |
260 | | - default Literal<T> getAsSimplifiedLiteral() { |
261 | | - return SimplifiedLiteral.fromExpression(this); |
262 | | - } |
263 | | - |
264 | 250 | /** |
265 | 251 | * Tests whether this expression supports the given mode, and if yes what type it expects the <code>delta</code> to be. |
266 | 252 | * <p> |
|
0 commit comments