提交 558d2597 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Remove unused queryLevel fields

上级 3d365e4c
......@@ -31,7 +31,6 @@ public class ConditionIn extends Condition {
private final Database database;
private Expression left;
private final ArrayList<Expression> valueList;
private int queryLevel;
/**
* Create a new IN(..) condition.
......@@ -86,7 +85,6 @@ public class ConditionIn extends Condition {
for (Expression e : valueList) {
e.mapColumns(resolver, level, state);
}
this.queryLevel = Math.max(level, this.queryLevel);
}
@Override
......
......@@ -33,7 +33,6 @@ import org.h2.value.ValueNull;
public class ConditionInConstantSet extends Condition {
private Expression left;
private int queryLevel;
private final ArrayList<Expression> valueList;
private final TreeSet<Value> valueSet;
private final int type;
......@@ -87,7 +86,6 @@ public class ConditionInConstantSet extends Condition {
@Override
public void mapColumns(ColumnResolver resolver, int level, int state) {
left.mapColumns(resolver, level, state);
this.queryLevel = Math.max(level, this.queryLevel);
}
@Override
......
......@@ -33,7 +33,6 @@ public class ConditionInSelect extends Condition {
private final Query query;
private final boolean all;
private final int compareType;
private int queryLevel;
public ConditionInSelect(Database database, Expression left, Query query,
boolean all, int compareType) {
......@@ -110,7 +109,6 @@ public class ConditionInSelect extends Condition {
public void mapColumns(ColumnResolver resolver, int level, int state) {
left.mapColumns(resolver, level, state);
query.mapColumns(resolver, level + 1);
this.queryLevel = Math.max(level, this.queryLevel);
}
@Override
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论