diff --git a/jOOQ/src/main/java/org/jooq/impl/AbstractQueryPart.java b/jOOQ/src/main/java/org/jooq/impl/AbstractQueryPart.java index dde31dae8e..a3098296a6 100644 --- a/jOOQ/src/main/java/org/jooq/impl/AbstractQueryPart.java +++ b/jOOQ/src/main/java/org/jooq/impl/AbstractQueryPart.java @@ -40,8 +40,6 @@ import static org.jooq.conf.SettingsTools.executePreparedStatements; import java.sql.SQLException; import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.Map; @@ -54,7 +52,6 @@ import org.jooq.Query; import org.jooq.QueryPart; import org.jooq.QueryPartInternal; import org.jooq.SQLDialect; -import org.jooq.Store; import org.jooq.exception.DataAccessException; import org.jooq.exception.SQLDialectNotSupportedException; @@ -227,37 +224,6 @@ abstract class AbstractQueryPart implements QueryPartInternal, AttachableInterna // Internal convenience methods // ------------------------------------------------------------------------- - /** - * Internal convenience method - */ - protected final List getAttachables(Collection list) { - List result = new ArrayList(); - - for (QueryPart item : list) { - if (item != null) { - result.add(item); - } - } - - return result; - } - - /** - * Internal convenience method - */ - protected final List getAttachables(QueryPart... list) { - return getAttachables(Arrays.asList(list)); - } - - /** - * Internal convenience method - */ - protected final List getAttachables(Store store) { - return store == null - ? Collections. emptyList() - : store.internalAPI(AttachableInternal.class).getAttachables(); - } - @Override public List getAttachables() { return Collections.emptyList(); diff --git a/jOOQ/src/main/java/org/jooq/impl/Util.java b/jOOQ/src/main/java/org/jooq/impl/Util.java index 0e97a5952f..4d43efe9df 100644 --- a/jOOQ/src/main/java/org/jooq/impl/Util.java +++ b/jOOQ/src/main/java/org/jooq/impl/Util.java @@ -61,8 +61,6 @@ import javax.persistence.Column; import javax.persistence.Entity; import org.jooq.ArrayRecord; -import org.jooq.Attachable; -import org.jooq.AttachableInternal; import org.jooq.Configuration; import org.jooq.Cursor; import org.jooq.DataType; @@ -73,7 +71,6 @@ import org.jooq.FieldProvider; import org.jooq.NamedQueryPart; import org.jooq.Param; import org.jooq.QueryPart; -import org.jooq.QueryPartInternal; import org.jooq.Record; import org.jooq.RenderContext; import org.jooq.Schema; @@ -977,20 +974,6 @@ final class Util { } } - /** - * Expose the internal API of an {@link Attachable} - */ - static final AttachableInternal internal(Attachable part) { - return part.internalAPI(AttachableInternal.class); - } - - /** - * Expose the internal API of a {@link QueryPart} - */ - static final QueryPartInternal internal(QueryPart part) { - return part.internalAPI(QueryPartInternal.class); - } - /** * Return a non-negative hash code for a {@link QueryPart}, taking into * account FindBugs' RV_ABSOLUTE_VALUE_OF_HASHCODE pattern