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

Remove unused queryLevel fields

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