Skip to content

Commit 8519ecc

Browse files
committed
Remove useless class.
1 parent c6e864b commit 8519ecc

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/analysis/AnalyzerRules.java

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import org.elasticsearch.xpack.esql.core.expression.UnresolvedAttribute;
1212
import org.elasticsearch.xpack.esql.plan.logical.LogicalPlan;
1313
import org.elasticsearch.xpack.esql.rule.ParameterizedRule;
14-
import org.elasticsearch.xpack.esql.rule.Rule;
1514

1615
import java.util.ArrayList;
1716
import java.util.Collection;
@@ -21,24 +20,6 @@
2120
import java.util.function.Supplier;
2221

2322
public final class AnalyzerRules {
24-
25-
public interface AnalyzerRule<SubPlan extends LogicalPlan> extends Rule<SubPlan, LogicalPlan> {
26-
abstract class Sync<SubPlan extends LogicalPlan> extends Rule.Sync<SubPlan, LogicalPlan> {
27-
// transformUp (post-order) - that is first children and then the node
28-
// but with a twist; only if the tree is not resolved or analyzed
29-
@Override
30-
public final LogicalPlan apply(LogicalPlan plan) {
31-
return plan.transformUp(typeToken(), t -> t.analyzed() || skipResolved() && t.resolved() ? t : rule(t));
32-
}
33-
34-
protected abstract LogicalPlan rule(SubPlan plan);
35-
36-
protected boolean skipResolved() {
37-
return true;
38-
}
39-
}
40-
}
41-
4223
public interface ParameterizedAnalyzerRule<SubPlan extends LogicalPlan, P> extends ParameterizedRule<SubPlan, LogicalPlan, P> {
4324
abstract class Sync<SubPlan extends LogicalPlan, P> extends ParameterizedRule.Sync<SubPlan, LogicalPlan, P> {
4425
// transformUp (post-order) - that is first children and then the node

0 commit comments

Comments
 (0)