Skip to content

Commit a2e74f4

Browse files
committed
Remove TODO code.
1 parent fbdbead commit a2e74f4

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

src/main/java/org/byteskript/skript/lang/syntax/control/AddEffect.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,12 @@ public void preCompile(Context context, Pattern.Match match) throws Throwable {
4848
if (target == null)
4949
throw new ScriptParseError(context.lineNumber(), "Syntax '" + inputs[1].current()
5050
.name() + "' cannot be added to.");
51-
inputs[1].type = StandardHandlers.ADD; // todo
51+
inputs[1].type = StandardHandlers.ADD;
5252
super.preCompile(context, match);
5353
}
5454

5555
@Override
5656
public void compile(Context context, Pattern.Match match) throws Throwable {
57-
// final MethodBuilder method = context.getMethod();
58-
// assert method != null;
59-
// final ElementTree tree = context.getCompileCurrent();
60-
// final ElementTree[] inputs = tree.nested();
61-
// final Referent referent = (Referent) inputs[1].current();
62-
// final Method target = referent.getHandler(StandardHandlers.ADD);
63-
// assert target != null;
64-
// this.writeCall(method, target, context);
6557
context.setState(CompileState.CODE_BODY);
6658
}
6759

src/main/java/org/byteskript/skript/lang/syntax/control/RemoveEffect.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,12 @@ public void preCompile(Context context, Pattern.Match match) throws Throwable {
4848
if (target == null)
4949
throw new ScriptParseError(context.lineNumber(), "Syntax '" + inputs[1].current()
5050
.name() + "' cannot be removed from.");
51-
inputs[1].type = StandardHandlers.REMOVE; // todo
52-
// inputs[1].compile = false;
51+
inputs[1].type = StandardHandlers.REMOVE;
5352
super.preCompile(context, match);
5453
}
5554

5655
@Override
5756
public void compile(Context context, Pattern.Match match) throws Throwable {
58-
// final MethodBuilder method = context.getMethod();
59-
// assert method != null;
60-
// final ElementTree tree = context.getCompileCurrent();
61-
// final ElementTree[] inputs = tree.nested();
62-
// final Referent referent = (Referent) inputs[1].current();
63-
// final Method target = referent.getHandler(StandardHandlers.REMOVE);
64-
// assert target != null;
65-
// this.writeCall(method, target, context);
6657
context.setState(CompileState.CODE_BODY);
6758
}
6859

0 commit comments

Comments
 (0)