This is an automated email from the ASF dual-hosted git repository.
chengzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 57ddd3a57c5 Remove unused methods (#32522)
57ddd3a57c5 is described below
commit 57ddd3a57c56d3ff0bb12448a4d9311a3d75ad02
Author: jiangML <[email protected]>
AuthorDate: Thu Aug 15 16:02:53 2024 +0800
Remove unused methods (#32522)
---
.../apache/shardingsphere/driver/ShardingSphereDriver.java | 14 --------------
1 file changed, 14 deletions(-)
diff --git
a/jdbc/src/main/java/org/apache/shardingsphere/driver/ShardingSphereDriver.java
b/jdbc/src/main/java/org/apache/shardingsphere/driver/ShardingSphereDriver.java
index f09f76551c3..f7fcb55ec8c 100644
---
a/jdbc/src/main/java/org/apache/shardingsphere/driver/ShardingSphereDriver.java
+++
b/jdbc/src/main/java/org/apache/shardingsphere/driver/ShardingSphereDriver.java
@@ -18,7 +18,6 @@
package org.apache.shardingsphere.driver;
import org.apache.shardingsphere.driver.exception.DriverRegisterException;
-import
org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource;
import org.apache.shardingsphere.driver.jdbc.core.driver.DriverDataSourceCache;
import org.apache.shardingsphere.infra.annotation.HighFrequencyInvocation;
@@ -27,11 +26,8 @@ import java.sql.Driver;
import java.sql.DriverManager;
import java.sql.DriverPropertyInfo;
import java.sql.SQLException;
-import java.util.Map;
-import java.util.Map.Entry;
import java.util.Properties;
import java.util.logging.Logger;
-import java.util.stream.Collectors;
/**
* ShardingSphere driver.
@@ -55,16 +51,6 @@ public final class ShardingSphereDriver implements Driver {
}
}
- /**
- * Get ShardingSphere data sources.
- *
- * @return ShardingSphere data source map
- */
- public Map<String, ShardingSphereDataSource>
getShardingSphereDataSources() {
- return dataSourceCache.getDataSourceMap().entrySet().stream()
- .filter(entry -> entry.getValue() instanceof
ShardingSphereDataSource).collect(Collectors.toMap(Entry::getKey, entry ->
(ShardingSphereDataSource) entry.getValue()));
- }
-
@HighFrequencyInvocation(canBeCached = true)
@Override
public Connection connect(final String url, final Properties info) throws
SQLException {