Skip to content

Commit e679b34

Browse files
committed
Remove some unused code
1 parent 9fcc42b commit e679b34

File tree

4 files changed

+5
-19
lines changed

4 files changed

+5
-19
lines changed

src/main/java/org/mybatis/dynamic/sql/SqlBuilder.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,25 +263,21 @@ static StringConstant stringConstant(String constant) {
263263
}
264264

265265
// functions
266-
@SafeVarargs
267266
static <T extends Number> Add<T> add(BindableColumn<T> firstColumn, BasicColumn secondColumn,
268267
BasicColumn... subsequentColumns) {
269268
return Add.of(firstColumn, secondColumn, Arrays.asList(subsequentColumns));
270269
}
271270

272-
@SafeVarargs
273271
static <T extends Number> Divide<T> divide(BindableColumn<T> firstColumn, BasicColumn secondColumn,
274272
BasicColumn... subsequentColumns) {
275273
return Divide.of(firstColumn, secondColumn, Arrays.asList(subsequentColumns));
276274
}
277275

278-
@SafeVarargs
279276
static <T extends Number> Multiply<T> multiply(BindableColumn<T> firstColumn, BasicColumn secondColumn,
280277
BasicColumn... subsequentColumns) {
281278
return Multiply.of(firstColumn, secondColumn, Arrays.asList(subsequentColumns));
282279
}
283280

284-
@SafeVarargs
285281
static <T extends Number> Subtract<T> subtract(BindableColumn<T> firstColumn, BasicColumn secondColumn,
286282
BasicColumn... subsequentColumns) {
287283
return Subtract.of(firstColumn, secondColumn, Arrays.asList(subsequentColumns));

src/main/java/org/mybatis/dynamic/sql/update/UpdateDSL.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public UpdateDSL<R> equalToWhenPresent(Supplier<T> valueSupplier) {
168168

169169
public class UpdateWhereBuilder extends AbstractWhereDSL<UpdateWhereBuilder> implements Buildable<R> {
170170

171-
public <T> UpdateWhereBuilder() {
171+
public UpdateWhereBuilder() {
172172
super();
173173
}
174174

src/main/java/org/mybatis/dynamic/sql/util/InsertMapping.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2016-2017 the original author or authors.
2+
* Copyright 2016-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -15,12 +15,7 @@
1515
*/
1616
package org.mybatis.dynamic.sql.util;
1717

18-
import java.util.function.Function;
19-
20-
import org.mybatis.dynamic.sql.SqlColumn;
21-
18+
@FunctionalInterface
2219
public interface InsertMapping {
23-
<R> R mapColumn(Function<SqlColumn<?>, R> mapper);
24-
2520
<R> R accept(InsertMappingVisitor<R> visitor);
2621
}

src/main/java/org/mybatis/dynamic/sql/util/UpdateMapping.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2016-2017 the original author or authors.
2+
* Copyright 2016-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -15,12 +15,7 @@
1515
*/
1616
package org.mybatis.dynamic.sql.util;
1717

18-
import java.util.function.Function;
19-
20-
import org.mybatis.dynamic.sql.SqlColumn;
21-
18+
@FunctionalInterface
2219
public interface UpdateMapping {
23-
<R> R mapColumn(Function<SqlColumn<?>, R> mapper);
24-
2520
<R> R accept(UpdateMappingVisitor<R> visitor);
2621
}

0 commit comments

Comments
 (0)