refactor: remove dead code
This commit is contained in:
parent
30674ee463
commit
e11d182631
@ -1,7 +1,7 @@
|
||||
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 {
|
||||
AssignTarget toAssignTarget();
|
||||
|
@ -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);
|
||||
// }
|
||||
}
|
@ -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)
|
||||
*/
|
||||
public interface Pattern extends PatternLike {
|
||||
public interface Pattern {
|
||||
Location loc();
|
||||
|
||||
/**
|
||||
@ -42,6 +42,4 @@ public interface Pattern extends PatternLike {
|
||||
VariableNode::parse
|
||||
);
|
||||
}
|
||||
|
||||
@Override default Pattern toPattern() { return this; }
|
||||
}
|
||||
|
@ -1,5 +0,0 @@
|
||||
package me.topchetoeu.jscript.compilation.patterns;
|
||||
|
||||
public interface PatternLike {
|
||||
Pattern toPattern();
|
||||
}
|
Loading…
Reference in New Issue
Block a user