Skip to content

Commit d283627

Browse files
committed
Remove unused
1 parent 2583cef commit d283627

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/EsqlFunctionRegistry.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,24 +1038,6 @@ protected interface UnaryVariadicBuilder<T> {
10381038
T build(Source source, Expression exp, List<Expression> variadic);
10391039
}
10401040

1041-
/**
1042-
* Build a {@linkplain FunctionDefinition} for functions with two mandatory arguments followed by a varidic list.
1043-
*/
1044-
@SuppressWarnings("overloads") // These are ambiguous if you aren't using ctor references but we always do
1045-
protected static <T extends Function> FunctionDefinition def(Class<T> function, BinaryVariadicBuilder<T> ctorRef, String... names) {
1046-
FunctionBuilder builder = (source, children, cfg) -> {
1047-
if (children.size() < 3) {
1048-
throw new QlIllegalArgumentException("expects at least two arguments");
1049-
}
1050-
return ctorRef.build(source, children.get(0), children.get(1), children.subList(2, children.size()));
1051-
};
1052-
return def(function, builder, names);
1053-
}
1054-
1055-
protected interface BinaryVariadicBuilder<T> {
1056-
T build(Source source, Expression exp1, Expression exp2, List<Expression> variadic);
1057-
}
1058-
10591041
protected interface BinaryVariadicWithOptionsBuilder<T> {
10601042
T build(Source source, Expression exp, List<Expression> variadic, Expression options);
10611043
};

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/math/RoundTo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
import static org.elasticsearch.xpack.esql.type.EsqlDataTypeConverter.commonType;
4141

4242
/**
43-
* Round down to a list of points.
43+
* Round down to one of a list of values.
4444
*/
4545
public class RoundTo extends EsqlScalarFunction {
4646
public static final NamedWriteableRegistry.Entry ENTRY = new NamedWriteableRegistry.Entry(Expression.class, "RoundTo", RoundTo::new);

0 commit comments

Comments
 (0)