refactor: remove dead code

This commit is contained in:
TopchetoEU 2024-09-14 18:52:07 +03:00
parent 30674ee463
commit e11d182631
Signed by: topchetoeu
GPG Key ID: 6531B8583E5F6ED4
4 changed files with 2 additions and 24 deletions

View File

@ -1,7 +1,7 @@
package me.topchetoeu.jscript.compilation.patterns; package me.topchetoeu.jscript.compilation.patterns;
/** /**
* Represents all nodes that can be assign targets * Represents all nodes that can be converted to assign targets
*/ */
public interface AssignTargetLike { public interface AssignTargetLike {
AssignTarget toAssignTarget(); AssignTarget toAssignTarget();

View File

@ -1,15 +0,0 @@
package me.topchetoeu.jscript.compilation.patterns;
public interface NamedDestructor extends Pattern {
String name();
// public static ParseRes<Destructor> parse(Source src, int i) {
// var n = Parsing.skipEmpty(src, i);
// ParseRes<Destructor> first = ParseRes.first(src, i + n,
// AssignDestructorNode::parse,
// VariableNode::parse
// );
// return first.addN(n);
// }
}

View File

@ -10,7 +10,7 @@ import me.topchetoeu.jscript.compilation.values.VariableNode;
/** /**
* Represents all nodes that can be a destructors (note that all destructors are assign targets, too) * Represents all nodes that can be a destructors (note that all destructors are assign targets, too)
*/ */
public interface Pattern extends PatternLike { public interface Pattern {
Location loc(); Location loc();
/** /**
@ -42,6 +42,4 @@ public interface Pattern extends PatternLike {
VariableNode::parse VariableNode::parse
); );
} }
@Override default Pattern toPattern() { return this; }
} }

View File

@ -1,5 +0,0 @@
package me.topchetoeu.jscript.compilation.patterns;
public interface PatternLike {
Pattern toPattern();
}