提交 2538b6f0 authored 作者: Thomas Mueller's avatar Thomas Mueller

Removed unused code and reduce visibility where possible.

上级 49ec7d34
...@@ -12,7 +12,7 @@ import org.h2.value.ValueBoolean; ...@@ -12,7 +12,7 @@ import org.h2.value.ValueBoolean;
/** /**
* Represents a condition returning a boolean value, or NULL. * Represents a condition returning a boolean value, or NULL.
*/ */
public abstract class Condition extends Expression { abstract class Condition extends Expression {
public int getType() { public int getType() {
return Value.BOOLEAN; return Value.BOOLEAN;
......
...@@ -177,7 +177,7 @@ public class ConditionIn extends Condition { ...@@ -177,7 +177,7 @@ public class ConditionIn extends Condition {
* @param other the second condition * @param other the second condition
* @return null if the condition was not added, or the new condition * @return null if the condition was not added, or the new condition
*/ */
public Expression getAdditional(Session session, Comparison other) { Expression getAdditional(Session session, Comparison other) {
Expression add = other.getIfEquals(left); Expression add = other.getIfEquals(left);
if (add != null) { if (add != null) {
valueList.add(add); valueList.add(add);
......
...@@ -304,7 +304,7 @@ public abstract class Expression { ...@@ -304,7 +304,7 @@ public abstract class Expression {
* @param value the value to extract columns from * @param value the value to extract columns from
* @return array of expression columns * @return array of expression columns
*/ */
public static Expression[] getExpressionColumns(Session session, ValueArray value) { static Expression[] getExpressionColumns(Session session, ValueArray value) {
Value[] list = value.getList(); Value[] list = value.getList();
ExpressionColumn[] expr = new ExpressionColumn[list.length]; ExpressionColumn[] expr = new ExpressionColumn[list.length];
for (int i = 0, len = list.length; i < len; i++) { for (int i = 0, len = list.length; i < len; i++) {
......
...@@ -156,7 +156,7 @@ public class ExpressionVisitor { ...@@ -156,7 +156,7 @@ public class ExpressionVisitor {
* @param resolver the resolver * @param resolver the resolver
* @return the new visitor * @return the new visitor
*/ */
public static ExpressionVisitor getNotFromResolverVisitor(ColumnResolver resolver) { static ExpressionVisitor getNotFromResolverVisitor(ColumnResolver resolver) {
return new ExpressionVisitor(NOT_FROM_RESOLVER, 0, null, null, null, resolver, null); return new ExpressionVisitor(NOT_FROM_RESOLVER, 0, null, null, null, resolver, null);
} }
...@@ -190,7 +190,7 @@ public class ExpressionVisitor { ...@@ -190,7 +190,7 @@ public class ExpressionVisitor {
* *
* @param column the additional column. * @param column the additional column.
*/ */
public void addColumn(Column column) { void addColumn(Column column) {
columns.add(column); columns.add(column);
} }
......
...@@ -364,7 +364,7 @@ public class Function extends Expression implements FunctionCall { ...@@ -364,7 +364,7 @@ public class Function extends Expression implements FunctionCall {
* @param name the function name * @param name the function name
* @return the function info * @return the function info
*/ */
public static FunctionInfo getFunctionInfo(String name) { private static FunctionInfo getFunctionInfo(String name) {
return FUNCTIONS.get(name); return FUNCTIONS.get(name);
} }
...@@ -1613,21 +1613,6 @@ public class Function extends Expression implements FunctionCall { ...@@ -1613,21 +1613,6 @@ public class Function extends Expression implements FunctionCall {
} }
} }
/**
* Set the result data type of this function.
*
* @param dataType the data type
* @param precision the precision
* @param scale the scale
* @param displaySize the display size
*/
public void setDataType(int dataType, long precision, int scale, int displaySize) {
this.dataType = dataType;
this.precision = precision;
this.displaySize = displaySize;
this.scale = scale;
}
public void setDataType(Column col) { public void setDataType(Column col) {
dataType = col.getType(); dataType = col.getType();
precision = col.getPrecision(); precision = col.getPrecision();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论