Skip to content

Commit c31d50d

Browse files
committed
Remove useless methods in ConnectionFactoryBase
1 parent d60f279 commit c31d50d

File tree

5 files changed

+0
-52
lines changed

5 files changed

+0
-52
lines changed

vertx-db2-client/src/main/java/io/vertx/db2client/impl/DB2ConnectionFactory.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import io.vertx.core.impl.EventLoopContext;
2323
import io.vertx.core.impl.VertxInternal;
2424
import io.vertx.core.net.NetClient;
25-
import io.vertx.core.net.NetClientOptions;
2625
import io.vertx.core.net.SocketAddress;
2726
import io.vertx.core.net.impl.NetSocketInternal;
2827
import io.vertx.db2client.DB2ConnectOptions;
@@ -42,16 +41,6 @@ public DB2ConnectionFactory(VertxInternal vertx, Supplier<DB2ConnectOptions> opt
4241
super(vertx, options);
4342
}
4443

45-
@Override
46-
protected void initializeConfiguration(SqlConnectOptions connectOptions) {
47-
DB2ConnectOptions options = (DB2ConnectOptions) connectOptions;
48-
}
49-
50-
@Override
51-
protected void configureNetClientOptions(NetClientOptions netClientOptions) {
52-
// currently no-op
53-
}
54-
5544
@Override
5645
protected Future<Connection> doConnectInternal(SqlConnectOptions options, EventLoopContext context) {
5746
SocketAddress server = options.getSocketAddress();

vertx-mssql-client/src/main/java/io/vertx/mssqlclient/impl/MSSQLConnectionFactory.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,6 @@ public MSSQLConnectionFactory(VertxInternal vertx, Supplier<MSSQLConnectOptions>
4040
super(vertx, options);
4141
}
4242

43-
@Override
44-
protected void initializeConfiguration(SqlConnectOptions options) {
45-
// currently no-op
46-
}
47-
48-
@Override
49-
protected void configureNetClientOptions(NetClientOptions netClientOptions) {
50-
netClientOptions.setSsl(false);
51-
}
52-
5343
@Override
5444
protected Future<Connection> doConnectInternal(SqlConnectOptions options, EventLoopContext context) {
5545
return connectOrRedirect((MSSQLConnectOptions) options, context, 0);

vertx-mysql-client/src/main/java/io/vertx/mysqlclient/impl/MySQLConnectionFactory.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,6 @@ public MySQLConnectionFactory(VertxInternal vertx, Supplier<MySQLConnectOptions>
4242
super(vertx, options);
4343
}
4444

45-
@Override
46-
protected void initializeConfiguration(SqlConnectOptions connectOptions) {
47-
}
48-
49-
@Override
50-
protected void configureNetClientOptions(NetClientOptions netClientOptions) {
51-
}
52-
5345
@Override
5446
protected Future<Connection> doConnectInternal(SqlConnectOptions options, EventLoopContext context) {
5547
MySQLConnectOptions mySQLOptions = (MySQLConnectOptions) options;

vertx-pg-client/src/main/java/io/vertx/pgclient/impl/PgConnectionFactory.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ public PgConnectionFactory(VertxInternal context, Supplier<PgConnectOptions> opt
5252
super(context, options);
5353
}
5454

55-
@Override
56-
protected void initializeConfiguration(SqlConnectOptions connectOptions) {
57-
}
58-
5955
private void checkSslMode(PgConnectOptions options) {
6056
switch (options.getSslMode()) {
6157
case VERIFY_FULL:
@@ -72,11 +68,6 @@ private void checkSslMode(PgConnectOptions options) {
7268
}
7369
}
7470

75-
@Override
76-
protected void configureNetClientOptions(NetClientOptions netClientOptions) {
77-
netClientOptions.setSsl(false);
78-
}
79-
8071
@Override
8172
protected Future<Connection> doConnectInternal(SqlConnectOptions options, EventLoopContext context) {
8273
try {

vertx-sql-client/src/main/java/io/vertx/sqlclient/impl/ConnectionFactoryBase.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -112,20 +112,6 @@ private void doConnectWithRetry(SqlConnectOptions options, PromiseInternal<Conne
112112
});
113113
}
114114

115-
/**
116-
* Initialize the configuration after the common configuration have been initialized.
117-
*
118-
* @param options the concrete options for initializing configuration by a specific connection factory.
119-
*/
120-
protected abstract void initializeConfiguration(SqlConnectOptions options);
121-
122-
/**
123-
* Apply the configuration to the {@link NetClientOptions NetClientOptions} for connecting to the database.
124-
*
125-
* @param netClientOptions NetClient options to apply
126-
*/
127-
protected abstract void configureNetClientOptions(NetClientOptions netClientOptions);
128-
129115
/**
130116
* Establish a connection to the server.
131117
*/

0 commit comments

Comments
 (0)